Skip to content

ESM - #229

Merged
brettz9 merged 1 commit into
masterfrom
esm
Jul 24, 2021
Merged

ESM#229
brettz9 merged 1 commit into
masterfrom
esm

Conversation

@brettz9

Copy link
Copy Markdown
Collaborator
  • Breaking change: Add type: 'module' and exports to package.json;
    change internal CJS path
  • Refactoring: Switch to ESM
  • Update: Switch from deprecated request to node-fetch
  • Testing: Switch to mocha/chai/c8
  • Testing: Begin binary file coverage
  • Docs: Add ESM file-server example

These changes relate to adding ESM support. Testing ESM required mocha and c8, and using Mocha allowed beginning to test the binary for coverage. In the process also switched from deprecated request used in testing.

Note that the binary file is now safely only added in ESM now since the engines we have already applied is Node 12+. However, for APIs, I added a Rollup routine to continue supporting CJS.

Would be good to get some others to test it out.

….json`;
change internal CJS path
- Refactoring: Switch to ESM
- Update: Switch from deprecated `request` to `node-fetch`
- Testing: Switch to `mocha`/`chai`/`c8`
- Testing: Begin binary file coverage
- Docs: Add ESM file-server example
@brettz9
brettz9 merged commit 4ac05bc into masterJul 24, 2021
@brettz9
brettz9 deleted the esm branch July 24, 2021 07:56
cloudhead pushed a commit that referenced this pull request Jul 25, 2021
Zarel pushed a commit to Zarel/node-static that referenced this pull request Aug 10, 2021
- **Breaking change**: Add type: 'module' and exports to `package.json`;
change internal CJS path
- Refactoring: Switch to ESM
- Update: Switch from deprecated `request` to `node-fetch`
- Testing: Switch to `mocha`/`chai`/`c8`
- Testing: Begin binary file coverage
- Docs: Add ESM file-server example
Zarel pushed a commit to Zarel/node-static that referenced this pull request Aug 10, 2021
- **Breaking change**: Add type: 'module' and exports to `package.json`;
change internal CJS path
- Refactoring: Switch to ESM
- Update: Switch from deprecated `request` to `node-fetch`
- Testing: Switch to `mocha`/`chai`/`c8`
- Testing: Begin binary file coverage
- Docs: Add ESM file-server example
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

@brettz9@cloudhead