feat: Migrate node-auth to ESM#177
Closed
lboyd wants to merge 2 commits into
Closed
Conversation
- Add "type": "module" to root and all sub-package package.json files - Replace "main" with "exports" in sub-package package.json files - Convert all require/module.exports to import/export in source files - Convert all test files to ESM imports - Convert bin scripts to ESM with import.meta.url - Replace find-requires with static import analysis in set-dependencies.js - Replace deprecated querystring with URLSearchParams - Replace deprecated new Buffer() with Buffer.from() - Update jose imports to use named exports from main entry - Upgrade chai to v5 and chai-as-promised to v8 (ESM-only) - Update ESLint config to remove commonjs type
Summary of changes: - Add "type": "module" to root and all sub-package package.json files - Replace "main" with "exports" in all sub-package package.json files - Convert all require/module.exports to import/export in 18 source files - Convert all 20 test files to ESM import/export syntax - Convert 3 bin scripts to ESM with import.meta.url for __dirname - Replace nyc (CJS-only) with c8 for ESM-compatible code coverage - Replace find-requires with static import analysis in set-dependencies.js - Replace deprecated querystring module with URLSearchParams - Replace deprecated new Buffer() with Buffer.from() - Update jose imports from deep paths to named exports from main entry - Upgrade chai v4→v5 and chai-as-promised v7→v8 (ESM-only versions) - Update ESLint config: remove commonjs type, update ecmaVersion to 2022 - Remove .nyc_output references from .gitignore and ESLint config
Contributor
Author
|
/jira EAP |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.