Skip to content

feat: Migrate node-auth to ESM#177

Closed
lboyd wants to merge 2 commits into
mainfrom
copilot/esm-conversion
Closed

feat: Migrate node-auth to ESM#177
lboyd wants to merge 2 commits into
mainfrom
copilot/esm-conversion

Conversation

@lboyd

@lboyd lboyd commented Jun 10, 2026

Copy link
Copy Markdown
Contributor

No description provided.

Copilot AI added 2 commits June 10, 2026 17:50
- 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
@lboyd

lboyd commented Jun 10, 2026

Copy link
Copy Markdown
Contributor Author

/jira EAP

@lboyd lboyd closed this Jun 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants