Skip to content

v0.16.0-alpha.2

Pre-release
Pre-release
Compare
Choose a tag to compare
@thescientist13 thescientist13 released this 20 Sep 21:59
· 494 commits to master since this release

Overview

This fixes a bug with flat export map handling in node_modules and address a follow up enhancement to a prior change in this release line. Please see the previous notes for the previous changes.

Note: We've seen some instability in our Node v12 tests in our GitHub Actions and given that Node v12 is in maintenance mode, we recommend users to start migrating to Node v14.

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.16.0+label%3Aalpha.2+

  1. node resolution not handling flat export maps for files and transient dependency imports
  2. leverage NodeJS resolve logic for looking up location of paths for node modules

Breaking Changes

None

Known Issues

  1. Regressions introduced in this release around with node_modules resolution - #557 (comment)

Diff

% git diff v0.16.0-alpha.1 v0.16.0-alpha.2 --stat | grep -v "www/"
 lerna.json                                         |   2 +-
 packages/cli/package.json                          |   4 +-
 packages/cli/src/lib/node-modules-utils.js         |  47 ++++++
 .../src/plugins/resource/plugin-node-modules.js    |  73 ++++-----
 .../cases/develop.default/develop.default.spec.js  | 179 ++++++++++++++++++++-
 .../cli/test/cases/develop.default/package.json    |   2 +
 .../test/cases/theme-pack/theme-pack.build.spec.js |   4 +-
 packages/plugin-babel/package.json                 |   4 +-
 packages/plugin-google-analytics/package.json      |   4 +-
 packages/plugin-graphql/package.json               |   4 +-
 packages/plugin-import-commonjs/package.json       |   4 +-
 packages/plugin-import-css/package.json            |   4 +-
 packages/plugin-import-json/package.json           |   4 +-
 packages/plugin-polyfills/package.json             |   4 +-
 packages/plugin-polyfills/src/index.js             |  11 +-
 packages/plugin-postcss/package.json               |   4 +-
 packages/plugin-typescript/package.json            |   4 +-
 yarn.lock                                          |  61 ++++++-
 20 files changed, 348 insertions(+), 80 deletions(-)