Releases: creatorsgarten/contentsgarten
Releases · creatorsgarten/contentsgarten
contentsgarten@2.1.0
Minor Changes
- beeacd2: Added
getContributors
API
contentsgarten@2.0.1
@contentsgarten/markdown@2.0.0
Major Changes
- 85edb28: Markdown processing is now async. This is to facilitate future improvements such as code syntax highlighting.
- 85edb28: Removed
<Markdown />
React component. The@contentsgarten/markdown
package now only turns Markdown into HTML strings. To render Markdown in React, use the@contentsgarten/html
package to render the HTML string returned by@contentsgarten/markdown
into a React component.
Patch Changes
- 85edb28: Fixed a bug where wiki links with a hash in them would not be rendered correctly.
contentsgarten@2.0.0
Major Changes
-
4d47bab: Removed the ACL system, in favor of simple code-based configuration.
In previous versions, granting edit access to the wiki is done by creating a
contentsgarten.config.yml
with configuration like this:policies: - name: Allow anyone in "creators" team to edit the page contents permission: edit team: creatorsgarten/creators
Now, the authorization logic is configured directly in the code. When calling
createContentsgarten
, you can pass in aauthorizer
function that determines whether the user can edit the wiki or not.authorizer: async ({ gitHub, user }) => { if (await gitHub.isUserInTeam(user, 'creatorsgarten', 'creators')) { return { granted: true } } return { granted: false, reason: 'You should be in the "creators" team to edit the wiki.', } },
This eliminated ~400 lines of code and the error messages are now more user-friendly.
Minor Changes
- 2226727: Allow starting pageRef with a number
Patch Changes
- 2226727: Fixed an issue where the page cache data is not purged from the memory cache after saving a page via an API.
@contentsgarten/server-utils@10.0.0
Major Changes
- 4d47bab: Replaced the server-utils with an implementation of a tRPC local link.
contentsgarten@1.8.1
Patch Changes
- @contentsgarten/markdown@1.1.3
@contentsgarten/server-utils@9.0.1
Patch Changes
- contentsgarten@1.8.1
@contentsgarten/markdown@1.1.3
Patch Changes
- Updated dependencies [9dd3a53]
- @contentsgarten/html@1.3.0
@contentsgarten/html@1.3.0
Minor Changes
- 9dd3a53: Remove
renderCode
options, and replacing withrenderImage
instead
contentsgarten@1.8.0
Minor Changes
-
4e5fa18: Search API: Added ability to search by
pageRef
.{"pageRef":"MainPage"}
— Looks up a single page.{"pageRef":["MainPage","Syntax"]}
— Looks up multiple pages.
-
4e5fa18: Search API: Added ability to match pages that contains a property (of any value).
{"match":{"event":true}}
— Looks up pages that have anevent
property with any value.