Skip to content

v0.9.14

Compare
Choose a tag to compare
@bitspittle bitspittle released this 22 Feb 19:55

kobweb-run-recovery

  • We now attempt some recovery behavior if a Kobweb project cannot be found.

    • If the user runs kobweb run, kobweb stop, or kobweb export in the wrong directory, we now look in nested folders if it's there instead.
    • This should help new users who run kobweb run in their root project and not the site subfolder, for example.
    • The search is limited to a depth of 2, so running kobweb in a totally incorrect place shouldn't cause major hanging issues.
  • kobweb create ... now attempts to find a close match if no exact match is found.

    • e.g. kobweb create clock is invalid, because the project is called examples/clock. As before, we show the user a list of templates to choose from in this case; but now, the cursor will point to the examples/clock line automatically so the user just has to press enter.
  • Fixed an issue where externally stopping a Kobweb server would cause kobweb to hang.

    • e.g. In terminal 1, run kobweb run. Once running, in terminal 2, run kobweb stop.
  • Yes/no questions now use a simpler [Yes] No widget instead of asking the user to type "Yes" or "No".

  • kobweb conf now uses general yaml parsing and not reflection, for a simpler, more future-proof approach.

    • Plus, reflection is ugly!
    • As a bonus, the command now also lists all possible queries if the user doesn't specify any query at all, or if they specify an invalid one.
  • kobweb help now works the same as kobweb --help

Internal

  • Kobweb Templates now support a maximumVersion value in addition to a minimumVersion.

    • In the future, this will allow us to fork templates over and add new features to them without breaking older users, who can continue to fetch the older versions in their case.
  • Removed the long deprecated --mode parameter. Users should be using --notty instead.

  • Added not to the list of freemarker methods available in templates.

    • This will allow us to clean up the empty template considerably after enough time passes that users can upgrade.
  • Added an informative error message instead of crashing if the user's .kobweb folder is somehow missing a conf.yaml file.

Full Changelog: v0.9.13...v0.9.14