@agency-kit/notion-cms
Advanced tools
Changelog
0.10.0
8862d40: Fix: image cache plugin will now only run when a page needs updated (not using cache).
New: cache PDFs using the image plugin. Long term this will likely be a unified plugin for fetching/caching all AWS S3 hosted Notion assets.
bef414e: Fix: Keep terminal logging mechanism from swallowing important error messages.
Fix: Throw an error when rootAlias
is non-existant in Notion database.
Fix: Show warning when there are multiple pages at the root level AND a rootAlias
is set (you probably don't want that).
Fix: Keep from failing when in quiet mode.
Upd: Improve bundle size a tiny amount by switching terminal colors to picocolors.
26dccd0: Fix: maintain proper spacing in codeblock renders.
Changelog
0.9.1
bd28226: Upd: improve terminal output and add quiet flag.
Fix: [images plugin] make sure existing images don't get overwritten.
Fix: [linker plugin] proper uuid detection in anchor tags.
Changelog
0.9.0
bc57a66: New: optimized content fetching only when content changes. This lets us achieve fastest possible builds 🚄. This comes with an autoUpdate
flag for turning it off, but you probably shouldn't.
New: added an every hook *, recommended for testing only.
New: added purgeCache
function that clears the local cache.
Fix: fixed a bug in linker plugin where non-uuids would get picked up.
Fix: fixed bug in terminal spinner that was causing ctrl-c not to close the terminal in some cases.
Fix: fixed typo bug where rootUrl
was being set to a bogus string.
Changelog
0.8.1
45151f6: New: add core plugins to repo: Images, Linker, Head.
New: add support for a root alias option that gets its key set to '/' route for convenience.
Changelog
0.8.0
d60bd35: Upd: No longer support cjs.
New: Support rendering link preview blocks.
New: Add a loading spinner that reports to the terminal for some feedback.
Upd: Alias fetch
at pull
which will match future push
commands better.
Changelog
0.7.2
f493c16: Fix: Caching was broken by a typo in the options checking mechanism in last release.
Fix: Make sure that the refresh timeout gets set properly whether a number or string is used.
Changelog
0.7.1
521cc9e: Upd: Support mermaid as a highlight js lang.
Upd: Support detection of changes in options to trigger a re-fetch, not including functions.
Changelog
0.7.0
1575bff: New: Support Notion Link-to-page blocks including with custom renderers.
New: Support multiple instances of NotionCMS in a project. Before this was limited because they would share a cache which would break things. Fixed by using unique identifiers (last 4 digits of the Notion database id) in the cache name.
New: Add _createCMSWalker
static utility class for quickly creating tree walker (walkjs) functions with the appropriate settings for when developing plugins that utilize the post-tree
hook.
Upd: Add more API and page stats in CMS metadata and update duration
to durationSeconds
for clarity.
Fix: Make sure that the page content filter accounts for the post-tree
case where the parent exists.
Changelog
0.6.0
used
for extensions as they bleed to all instances of Marked (uses a singleton under the hood).
Fix: update mis-typed Notion Block Object Responses.
Fix: proper access kitchen sink test object to fix render test.
Fix: ensure route array is populated.Changelog
0.5.8