Skip to content

Releases: creatorsgarten/contentsgarten

contentsgarten@2.0.1

15 May 06:05
a8bb663
Compare
Choose a tag to compare

Patch Changes

  • Updated dependencies [85edb28]
  • Updated dependencies [85edb28]
  • Updated dependencies [85edb28]
    • @contentsgarten/markdown@2.0.0

@contentsgarten/markdown@2.0.0

15 May 06:05
a8bb663
Compare
Choose a tag to compare

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

14 May 09:46
f8cf2d9
Compare
Choose a tag to compare

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 a authorizer 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

14 May 09:46
f8cf2d9
Compare
Choose a tag to compare

Major Changes

  • 4d47bab: Replaced the server-utils with an implementation of a tRPC local link.

contentsgarten@1.8.1

01 May 13:44
a427fbb
Compare
Choose a tag to compare

Patch Changes

  • @contentsgarten/markdown@1.1.3

@contentsgarten/server-utils@9.0.1

01 May 13:44
a427fbb
Compare
Choose a tag to compare

Patch Changes

  • contentsgarten@1.8.1

@contentsgarten/markdown@1.1.3

01 May 13:44
a427fbb
Compare
Choose a tag to compare

Patch Changes

  • Updated dependencies [9dd3a53]
    • @contentsgarten/html@1.3.0

@contentsgarten/html@1.3.0

01 May 13:44
a427fbb
Compare
Choose a tag to compare

Minor Changes

  • 9dd3a53: Remove renderCode options, and replacing with renderImage instead

contentsgarten@1.8.0

30 Apr 15:10
08be597
Compare
Choose a tag to compare

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 an event property with any value.

@contentsgarten/server-utils@9.0.0

30 Apr 15:10
08be597
Compare
Choose a tag to compare

Patch Changes

  • Updated dependencies [4e5fa18]
  • Updated dependencies [4e5fa18]
    • contentsgarten@1.8.0