Skip to content

v0.33.0-alpha.3

Pre-release
Pre-release

Choose a tag to compare

@thescientist13 thescientist13 released this 06 Jul 00:26
· 130 commits to master since this release

Overview

This release in the v0.33.0 release line addresses some regressions from the prior alpha release around pages and layouts content merging, fixes an issue with nested type modifiers when using TypeScript, and some general internal enhancements.

# npm
$ npm i -D @greenwood/cli@alpha

# Yarn 1.x (classic)
$ yarn upgrade @greenwood/cli@alpha --dev

# pnpm
$ pnpm i -D @greenwood/cli@alpha

Changelog

https://github.com/ProjectEvergreen/greenwood/issues?q=label%3Av0.33.0%20label%3Aalpha.3

  1. page contents overriding layouts content when no outlet tag is being used
  2. reconcile page level custom title and layout <title> merging when using active content
  3. pre-rendered SSR routes with a <body> tag causing a build error
  4. nested type modifier imports and verbatimModuleSyntax causing Greenwood to run incorrectly
  5. upgrade to latest version of node-html-parser
  6. prefix NodeJS builtin module imports with node:

Features (Early Access)

N / A

Breaking Changes

SSR Custom Imports

Based on a small refactor in this release of Greenwood, the document snippet for invoking the custom loaders hooks will need to change slightly to use bin.js

# before
$ node --import @greenwood/cli/register ./node_modules/@greenwood/cli/src/index.js <command>
# after
$ node --import @greenwood/cli/register ./node_modules/@greenwood/cli/src/bin.js <command>

N / A

Known Issues

  1. incorrect type for Greenwood CLI run function (will break tsc type-checking

Diff

v0.33.0-alpha.2...v0.33.0-alpha.3