Skip to content

0.2.5

Choose a tag to compare

@JanMiksovsky JanMiksovsky released this 06 Jan 17:08
· 1396 commits to main since this release
  • tree:filter builtin for filtering values from a tree
  • tree:globKeys builtin for use with tree:filter
  • tree:regExpKeys builtin for use with tree:filter
  • tree:constant builtin creates a deep tree of a constant value
  • The tree:cache builtin used to support a third filter parameter; this has been deprecated
  • String operations now available directly on string values in data. E.g., if a post object has a title string, then you can write paths like post/title/toUpperCase(), post/title/length, etc.
  • The dev:watch builtin now enables the reloading of JavaScript modules. By default, Node.js only loads the module at a given path only once. That default behavior remains in place, but when running a site locally via dev:watch (often via npm run start), if you edit a file in a watched folder, Origami will cause imported JavaScript modules to be reloaded the next time they're requested. Thanks to @jimniels for the suggestion. Note: only the modules directly imported by Origami will be reloaded; if those modules in turn import secondary modules, those secondary modules will not be reloaded.