v0.28.0-alpha.0
Pre-releaseOverview
This initial release for v0.28.0 sets Node v18 as the new minimum version and also introduces API routes.
In development docs here, full release blog will come out with the final release.
If using Yarn, you can can upgrade all your @greenwood packages at once
$ yarn upgrade --scope @greenwood --latest
Changelog
https://github.com/ProjectEvergreen/greenwood/issues?q=label%3Av0.28.0+label%3Aalpha.0
Breaking Changes
Node 18
The new minimum supported Node version with Greenwood is now v18. So make sure you update your GitHub Actions, hosting configuration; e.g. _netlify.toml, .nvmrc, etc.
Additionally, Greenwood now longer depends on node-fetch however native fetch
in Node 18 can / should be a drop in replacement for most cases. Just remove your import
line for node-fetch and test, and if so, you should be good to go! (You can always self install node-fetch if you want it back though).
Known Issues
N / A
Diff
$ git diff v0.27.2 v0.28.0-alpha.0 --stat | grep -v "www"
.github/ISSUE_TEMPLATE.md | 6 +-
.github/workflows/ci-exp.yml | 4 +-
.github/workflows/ci-win-exp.yml | 2 +-
.github/workflows/ci-win.yml | 2 +-
.github/workflows/ci.yml | 4 +-
.github/workflows/master.yml | 4 +-
.github/workflows/release.yml | 4 +-
.nvmrc | 2 +-
lerna.json | 2 +-
netlify.toml | 2 +-
package.json | 2 +-
packages/cli/package.json | 5 +-
packages/cli/src/commands/serve.js | 3 +-
packages/cli/src/lifecycles/context.js | 2 +
packages/cli/src/lifecycles/serve.js | 16 +
packages/cli/src/loader.js | 6 +-
.../cli/src/plugins/resource/plugin-api-routes.js | 53 +++
.../cli/src/plugins/resource/plugin-dev-proxy.js | 1 -
.../src/pages/artists.js | 2 -
.../cases/build.default.ssr/src/pages/artists.js | 2 -
.../cases/build.default.ssr/src/pages/users.js | 1 -
.../cases/develop.default/develop.default.spec.js | 29 ++
.../test/cases/develop.default/src/api/greeting.js | 11 +
.../test/cases/develop.ssr/src/pages/artists.js | 2 -
.../serve.default.api/serve.default.api.spec.js | 137 ++++++
.../cases/serve.default.api/src/api/fragment.js | 18 +
.../cases/serve.default.api/src/api/greeting.js | 11 +
.../cases/serve.default.api/src/components/card.js | 11 +
packages/init/package.json | 3 +-
packages/init/src/index.js | 1 -
packages/plugin-babel/package.json | 4 +-
packages/plugin-google-analytics/package.json | 4 +-
packages/plugin-graphql/package.json | 7 +-
packages/plugin-graphql/src/core/cache.js | 1 -
packages/plugin-import-commonjs/package.json | 4 +-
packages/plugin-import-css/package.json | 4 +-
packages/plugin-import-json/package.json | 4 +-
packages/plugin-include-html/package.json | 4 +-
packages/plugin-polyfills/package.json | 4 +-
packages/plugin-postcss/package.json | 4 +-
packages/plugin-renderer-lit/package.json | 4 +-
packages/plugin-renderer-puppeteer/package.json | 4 +-
packages/plugin-typescript/package.json | 4 +-
yarn.lock | 511 +++++++++++----------
50 files changed, 684 insertions(+), 318 deletions(-)