Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix exports field for Node.js 16 compatibility #1838

Merged
merged 4 commits into from
Jun 6, 2022
Merged

Fix exports field for Node.js 16 compatibility #1838

merged 4 commits into from
Jun 6, 2022

Conversation

texodus
Copy link
Member

@texodus texodus commented Jun 6, 2022

Node.js 16 implements obnoxiously verbose warnings for "deprecated" syntax in the "exports" field of package.json, where it seems to now require glob patterns and disallow path prefix aliases (which is in conflict with the up-to-date wepback docs). This PR "fixes" this but also removes several aliases which no longer work with this new restriction, leading to a breaking change. In summary, you must now import e.g. @finos/perspective/dist/umd/perspective as opposed to @finos/perspective/umd/perspective if you previously did the latter (which was allowed but not documented).

Additionally, this PR normalizes the perspective-viewer-d3fc tests which had somehow drifted a few pixels on my development OSX laptop compared to Linux/CI, despite puppeteer version being pinned. Why? Who knows ...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
breaking internal Internal refactoring and code quality improvement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant