Skip to content

v5.1.0

Choose a tag to compare

@dedene dedene released this 11 Apr 10:35
· 132 commits to main since this release

v5.1.0 adds various improvements to the modular nimbu-toolbelt flow:

  • no autoloading nimbu.js for commands where this does not apply (i.e. nimbu whoami)

  • add recursive copy of channel entries including all dependencies using the -r of --recursive flag, i.e.:

     channels:entries:copy --recursive \
      -f site-1/example -t site-2/example \
      --only example,example_parent \
      --copy-customers \
      --upsert=example:slug     
    

    Following flags are added to help selecting the dependencies to be copied:

    • -q or --query=<value>: the query params to append to source channel api call
    • -w or --where=<value>: a scope/query expression to filter the source channel
    • --allow-errors: do not stop when an item fails and continue with the other
    • --copy-customers: copy and replicate all owners related to the objects we are copying
    • -u or --upsert=<value>: name of parameter to use for matching existing documents. For recursive copying, use the format channel1:fieldname,channel2:otherfieldname to indicate which field to use for which channel
  • the command channels:info prints info about the channel in Nimbu, inclusing which fields and depencenies. Use --output=tsto generate Typescript interfaces for a channel you can directly copy in your projects integration code. See yarn nimbu channels:info --help for all available options.

  • the @nimbu-cli/plugin-webpack-v5 adds huge speed boost in complex React/Typescript projects

  • the @nimbu-cli/plugin-webpack-v5 addon adds support for AlpineJS

  • better subprocess handling: the nimbu-toolbelt (sub)processes are correctly killed when the parent shell or process is stopped

  • better (helpfull) output when webpack can not start due to some issues with any webpack customizations present in your project

⚠️ HAML is not longer enabled by default: add --haml to your script commands in package.js to retain HAML compilation using @nimbu-cli/plugin-webpack-v4 or @nimbu-cli/plugin-webpack-v5