-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
使用 tshy 来默认支持 cjs 和 esm #5257
Comments
node-modules/is-type-of#22 |
通过 https://github.com/node-modules/tshy-after 保留 package.json types 配置。 |
BREAKING CHANGE: Drop Node.js < 16 support eggjs/egg#5257
BREAKING CHANGE: Drop Node.js < 16 support eggjs/egg#5257
[skip ci] ## [2.0.0](v1.1.1...v2.0.0) (2023-10-05) ### ⚠ BREAKING CHANGES * Drop Node.js < 16 support eggjs/egg#5257 ### Features * refactor with typescript ([#7](#7)) ([9e2a9ff](9e2a9ff))
BREAKING CHANGE: Drop Node.js < 16 support Other BREAKING changes: - remove stsToken support - remove headerEncoding support - remove Bucket, Image Client support eggjs/egg#5257
[skip ci] ## [2.0.0](v1.2.6...v2.0.0) (2023-10-05) ### ⚠ BREAKING CHANGES * Drop Node.js < 16 support Other BREAKING changes: - remove stsToken support - remove headerEncoding support - remove Bucket, Image Client support eggjs/egg#5257 ### Features * refactor with typescript ([#12](#12)) ([5a0eb01](5a0eb01))
BREAKING CHANGE: Drop Node.js < 16 support closes #116 part of eggjs/egg#5257 --------- Co-authored-by: hanquliu <[email protected]>
[skip ci] ## [4.0.0](v3.0.0...v4.0.0) (2023-10-11) ### ⚠ BREAKING CHANGES * Drop Node.js < 16 support closes #116 part of eggjs/egg#5257 ### Features * refactor with typescript to support esm and cjs both ([#117](#117)) ([7193ec1](7193ec1))
BREAKING CHANGE: drop Node.js < 14 deps: use @koa/[email protected] eggjs/egg#5257
BREAKING CHANGE: drop Node.js < 16 deps: use @koa/[email protected] eggjs/egg#5257
BREAKING CHANGE: drop Node.js < 16 deps: use @koa/[email protected] eggjs/egg#5257
BREAKING CHANGE: drop Node.js < 14 eggjs/egg#5257
BREAKING CHANGE: drop Node.js < 18.19.0 support part of eggjs/egg#3644 eggjs/egg#5257
[skip ci] ## [3.0.0](v2.0.0...v3.0.0) (2024-06-23) ### ⚠ BREAKING CHANGES * drop Node.js < 18.19.0 support part of eggjs/egg#3644 eggjs/egg#5257 ### Features * support cjs and esm both by tshy ([#6](#6)) ([30acc65](30acc65))
通过字符串替换解决 |
支持自动复制 web 相关文件 |
大佬,目前egg.js有什么办法可以在让应用不使用ts的情况下支持esm吗 |
目前 egg 发布的 npm 包只支持 cjs 产物。需要等 egg v4 发布之后才会同时支持 cjs 和 esm 构建产物。 |
可能不需要了,如果 nodejs 20 就能支持 cjs 里面 require esm,那么我们就不需要编译出2份产物了。 |
BREAKING CHANGE: drop Node.js < 14 support eggjs/egg#5257
BREAKING CHANGE: drop Node.js < 14 support eggjs/egg#5257 <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **New Features** - Introduced a new function `ms` for converting human-readable time formats into milliseconds. - Added multiple GitHub Actions workflows for CI, testing, and publishing automation. - Updated TypeScript configuration for improved type safety. - **Bug Fixes** - Removed outdated configuration files that could lead to linting errors or CI issues. - **Documentation** - Updated `README.md` with new CI/CD references, installation instructions, and contributor acknowledgments. - Added a license section with the MIT License. - **Chores** - Updated `package.json` with new dependencies and scripts for linting and testing. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
[skip ci] ## 1.0.0 (2024-12-12) ### ⚠ BREAKING CHANGES * drop Node.js < 14 support eggjs/egg#5257 <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **New Features** - Introduced a new function `ms` for converting human-readable time formats into milliseconds. - Added multiple GitHub Actions workflows for CI, testing, and publishing automation. - Updated TypeScript configuration for improved type safety. - **Bug Fixes** - Removed outdated configuration files that could lead to linting errors or CI issues. - **Documentation** - Updated `README.md` with new CI/CD references, installation instructions, and contributor acknowledgments. - Added a license section with the MIT License. - **Chores** - Updated `package.json` with new dependencies and scripts for linting and testing. <!-- end of auto-generated comment: release notes by coderabbit.ai --> ### Features * **index.js:** warn when result is undefined ([b89dae5](b89dae5)) * refactor with TypeScript ([#5](#5)) ([14964af](14964af)) ### Bug Fixes * package.json to reduce vulnerabilities ([#3](#3)) ([3b6f1ba](3b6f1ba))
[skip ci] * drop Node.js < 14 support eggjs/egg#5257 <!-- This is an auto-generated comment: release notes by coderabbit.ai --> - **New Features** - Introduced a new function `ms` for converting human-readable time formats into milliseconds. - Added multiple GitHub Actions workflows for CI, testing, and publishing automation. - Updated TypeScript configuration for improved type safety. - **Bug Fixes** - Removed outdated configuration files that could lead to linting errors or CI issues. - **Documentation** - Updated `README.md` with new CI/CD references, installation instructions, and contributor acknowledgments. - Added a license section with the MIT License. - **Chores** - Updated `package.json` with new dependencies and scripts for linting and testing. <!-- end of auto-generated comment: release notes by coderabbit.ai --> * **index.js:** warn when result is undefined ([b89dae5](b89dae5)) * refactor with TypeScript ([#5](#5)) ([14964af](14964af)) * package.json to reduce vulnerabilities ([#3](#3)) ([3b6f1ba](3b6f1ba))
[skip ci] * drop Node.js < 14 support eggjs/egg#5257 <!-- This is an auto-generated comment: release notes by coderabbit.ai --> - **New Features** - Introduced a new function `ms` for converting human-readable time formats into milliseconds. - Added multiple GitHub Actions workflows for CI, testing, and publishing automation. - Updated TypeScript configuration for improved type safety. - **Bug Fixes** - Removed outdated configuration files that could lead to linting errors or CI issues. - **Documentation** - Updated `README.md` with new CI/CD references, installation instructions, and contributor acknowledgments. - Added a license section with the MIT License. - **Chores** - Updated `package.json` with new dependencies and scripts for linting and testing. <!-- end of auto-generated comment: release notes by coderabbit.ai --> * **index.js:** warn when result is undefined ([b89dae5](b89dae5)) * refactor with TypeScript ([#5](#5)) ([14964af](14964af)) * package.json to reduce vulnerabilities ([#3](#3)) ([3b6f1ba](3b6f1ba))
[skip ci] ## 1.0.0 (2024-12-12) ### ⚠ BREAKING CHANGES * drop Node.js < 14 support eggjs/egg#5257 <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **New Features** - Introduced a new function `ms` for converting human-readable time formats into milliseconds. - Added multiple GitHub Actions workflows for CI, testing, and publishing automation. - Updated TypeScript configuration for improved type safety. - **Bug Fixes** - Removed outdated configuration files that could lead to linting errors or CI issues. - **Documentation** - Updated `README.md` with new CI/CD references, installation instructions, and contributor acknowledgments. - Added a license section with the MIT License. - **Chores** - Updated `package.json` with new dependencies and scripts for linting and testing. <!-- end of auto-generated comment: release notes by coderabbit.ai --> ### Features * **index.js:** warn when result is undefined ([b89dae5](b89dae5)) * refactor with TypeScript ([#5](#5)) ([14964af](14964af)) ### Bug Fixes * package.json to reduce vulnerabilities ([#3](#3)) ([3b6f1ba](3b6f1ba))
BREAKING CHANGE: drop Node.js < 18.19.0 support part of eggjs/egg#3644 eggjs/egg#5257
BREAKING CHANGE: drop Node.js < 18.19.0 support part of eggjs/egg#3644 eggjs/egg#5257 <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit ## Release Notes - **New Features** - Introduced new GitHub Actions workflows for publishing and release processes. - Added TypeScript configuration for stricter type-checking and modern module support. - New exit handler functionality for graceful application termination. - **Documentation** - Updated README.md for clarity on usage and installation instructions. - **Bug Fixes** - Improved error handling and logging in the exit process. - **Chores** - Updated `.gitignore` and `package.json` to reflect new structure and dependencies. - Modified CI pipeline to use updated Node.js versions. <!-- end of auto-generated comment: release notes by coderabbit.ai --> --------- Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
[skip ci] ## [2.0.0](v1.2.0...v2.0.0) (2024-12-15) ### ⚠ BREAKING CHANGES * drop Node.js < 18.19.0 support part of eggjs/egg#3644 eggjs/egg#5257 <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit ## Release Notes - **New Features** - Introduced new GitHub Actions workflows for publishing and release processes. - Added TypeScript configuration for stricter type-checking and modern module support. - New exit handler functionality for graceful application termination. - **Documentation** - Updated README.md for clarity on usage and installation instructions. - **Bug Fixes** - Improved error handling and logging in the exit process. - **Chores** - Updated `.gitignore` and `package.json` to reflect new structure and dependencies. - Modified CI pipeline to use updated Node.js versions. <!-- end of auto-generated comment: release notes by coderabbit.ai --> ### Features * support cjs and esm both by tshy ([#8](#8)) ([a31a80e](a31a80e)) * support timeout && drop node 14 support ([#6](#6)) ([8551bae](8551bae))
BREAKING CHANGE: drop Node.js < 18.19.0 support part of eggjs/egg#3644 eggjs/egg#5257
BREAKING CHANGE: drop Node.js < 18.19.0 support part of eggjs/egg#3644 eggjs/egg#5257 closes #16 <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **New Features** - Introduced a new ESLint configuration for TypeScript and Node.js. - Added a new GitHub Actions workflow for package publishing. - Implemented a new TypeScript configuration for enhanced type safety. - Created a new test suite for validating worker process behavior. - Added a new test suite for verifying child process behavior. - **Bug Fixes** - Updated Node.js CI workflow to include newer versions and improved configurations. - **Documentation** - Enhanced README with updated badges and installation instructions. - Updated example documentation to reflect file extension changes. - **Chores** - Removed outdated files and workflows to streamline the repository. - Updated `.gitignore` to exclude additional files and directories. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
[skip ci] ## [2.0.0](v1.1.0...v2.0.0) (2024-12-15) ### ⚠ BREAKING CHANGES * drop Node.js < 18.19.0 support part of eggjs/egg#3644 eggjs/egg#5257 closes #16 <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **New Features** - Introduced a new ESLint configuration for TypeScript and Node.js. - Added a new GitHub Actions workflow for package publishing. - Implemented a new TypeScript configuration for enhanced type safety. - Created a new test suite for validating worker process behavior. - Added a new test suite for verifying child process behavior. - **Bug Fixes** - Updated Node.js CI workflow to include newer versions and improved configurations. - **Documentation** - Enhanced README with updated badges and installation instructions. - Updated example documentation to reflect file extension changes. - **Chores** - Removed outdated files and workflows to streamline the repository. - Updated `.gitignore` to exclude additional files and directories. <!-- end of auto-generated comment: release notes by coderabbit.ai --> ### Features * support cjs and esm both by tshy ([#17](#17)) ([7192a67](7192a67))
BREAKING CHANGE: drop Node.js < 18.19.0 support part of eggjs/egg#3644 eggjs/egg#5257
BREAKING CHANGE: drop Node.js < 18.19.0 support part of eggjs/egg#3644 eggjs/egg#5257 <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit ## Release Notes - **New Features** - Introduced a new GitHub Actions workflow for automated package publishing. - Added TypeScript configuration to enhance type safety and modern JavaScript compatibility. - New tests for child process management functionality. - **Updates** - Updated ESLint configuration to utilize external presets. - Modified GitHub Actions CI to specify a more precise Node.js version. - Enhanced README with installation and usage examples for ESM and TypeScript. - Updated package.json to reflect new module structure and dependencies. - Improved .gitignore to exclude additional temporary files and directories. - **Bug Fixes** - Improved .gitignore to exclude additional temporary files and directories. - **Removals** - Removed outdated JavaScript files and configurations in favor of CommonJS and TypeScript standards. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
[skip ci] ## [2.0.0](v1.11.0...v2.0.0) (2024-12-15) ### ⚠ BREAKING CHANGES * drop Node.js < 18.19.0 support part of eggjs/egg#3644 eggjs/egg#5257 <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit ## Release Notes - **New Features** - Introduced a new GitHub Actions workflow for automated package publishing. - Added TypeScript configuration to enhance type safety and modern JavaScript compatibility. - New tests for child process management functionality. - **Updates** - Updated ESLint configuration to utilize external presets. - Modified GitHub Actions CI to specify a more precise Node.js version. - Enhanced README with installation and usage examples for ESM and TypeScript. - Updated package.json to reflect new module structure and dependencies. - Improved .gitignore to exclude additional temporary files and directories. - **Bug Fixes** - Improved .gitignore to exclude additional temporary files and directories. - **Removals** - Removed outdated JavaScript files and configurations in favor of CommonJS and TypeScript standards. <!-- end of auto-generated comment: release notes by coderabbit.ai --> ### Features * support cjs and esm both by tshy ([#120](#120)) ([b2e1b53](b2e1b53))
BREAKING CHANGE: drop Node.js < 18.19.0 support part of eggjs/egg#3644 eggjs/egg#5257
BREAKING CHANGE: drop Node.js < 18.19.0 support part of eggjs/egg#3644 eggjs/egg#5257
[skip ci] ## [2.0.0](v1.1.0...v2.0.0) (2024-12-15) ### ⚠ BREAKING CHANGES * drop Node.js < 18.19.0 support part of eggjs/egg#3644 eggjs/egg#5257 ### Features * support cjs and esm both by tshy ([#8](#8)) ([a2981f8](a2981f8))
请详细告知你的新点子(Nice Ideas):
node-modules/urllib#468 目前看起来没有什么问题,非常轻松就支持了。
修改内容
feat: support cjs and esm both by tshy BREAKING CHANGE: drop Node.js < 18.19.0 support part of https://github.com/eggjs/egg/issues/3644 https://github.com/eggjs/egg/issues/5257
__dirname
单测中的 helper 方法test/helper.ts
.github/workflows/nodejs.yml
.github/workflows/release.yml
.github/workflows/pkg.pr.new.yml
tsconfig.json
.eslintrc
.gitignore
.tshy* .eslintcache dist coverage
The text was updated successfully, but these errors were encountered: