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

使用 tshy 来默认支持 cjs 和 esm #5257

Open
fengmk2 opened this issue Sep 14, 2023 · 15 comments
Open

使用 tshy 来默认支持 cjs 和 esm #5257

fengmk2 opened this issue Sep 14, 2023 · 15 comments
Assignees

Comments

@fengmk2
Copy link
Member

fengmk2 commented Sep 14, 2023

请详细告知你的新点子(Nice Ideas):

node-modules/urllib#468 目前看起来没有什么问题,非常轻松就支持了。

修改内容

  • package.json
  "engines": {
    "node": ">= 18.19.0"
  },
  "devDependencies": {
    "@arethetypeswrong/cli": "^0.17.1",
    "@eggjs/tsconfig": "1",
    "@types/node": "22",
    "@types/mocha": "10",
    "egg-bin": "6",
    "eslint": "8",
    "eslint-config-egg": "14",
    "rimraf": "6",
    "tshy": "3",
    "tshy-after": "1",
    "typescript": "5"
  },
  "scripts": {
    "lint": "eslint --cache src test --ext .ts",
    "pretest": "npm run clean && npm run lint -- --fix",
    "test": "egg-bin test",
    "preci": "npm run clean &&  npm run lint",
    "ci": "egg-bin cov && npm run prepublishOnly",
    "clean": "rimraf dist",
    "prepublishOnly": "tshy && tshy-after && attw --pack"
  },
  "type": "module",
  "tshy": {
    "exports": {
      ".": "./src/index.ts",
      "./package.json": "./package.json"
    }
  },
  "exports": {
    ".": {
      "import": {
        "types": "./dist/esm/index.d.ts",
        "default": "./dist/esm/index.js"
      },
      "require": {
        "types": "./dist/commonjs/index.d.ts",
        "default": "./dist/commonjs/index.js"
      }
    },
    "./package.json": "./package.json"
  },
  "files": [
    "dist",
    "src"
  ],
  "types": "./dist/commonjs/index.d.ts",
  "main": "./dist/commonjs/index.js"
  • pr welcome
[![Node.js Version](https://img.shields.io/node/v/{group/repo}.svg?style=flat)](https://nodejs.org/en/download/)

[![PRs Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg?style=flat-square)](https://makeapullrequest.com)
  • contributors
## Contributors

[![Contributors](https://contrib.rocks/image?repo={group/repo})](https://github.com/{group/repo}/graphs/contributors)

Made with [contributors-img](https://contrib.rocks).
  • commit log
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

import path from 'node:path';
import { fileURLToPath } from 'node:url';

const __filename = fileURLToPath(import.meta.url);
const __dirname = path.dirname(__filename);

export function getFixtures(filename: string) {
  return path.join(__dirname, filename);
}
  • 获取代码根目录
export function getSourceDirname() {
  if (typeof __dirname === 'string') {
    return __dirname;
  }
  // eslint-disable-next-line @typescript-eslint/ban-ts-comment
  // @ts-ignore
  const __filename = fileURLToPath(import.meta.url);
  return path.dirname(__filename);
}
  • .github/workflows/nodejs.yml
name: CI

on:
  push:
    branches: [ master ]
  pull_request:
    branches: [ master ]

jobs:
  Job:
    name: Node.js
    uses: node-modules/github-actions/.github/workflows/node-test.yml@master
    with:
      os: 'ubuntu-latest, macos-latest, windows-latest'
      version: '18.19.0, 18, 20, 22'
    secrets:
      CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
  • .github/workflows/release.yml
name: Release

on:
  push:
    branches: [ master ]

jobs:
  release:
    name: Node.js
    uses: node-modules/github-actions/.github/workflows/node-release.yml@master
    secrets:
      NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
      GIT_TOKEN: ${{ secrets.GIT_TOKEN }}
  • .github/workflows/pkg.pr.new.yml
name: Publish Any Commit
on: [push, pull_request]

jobs:
  build:
    runs-on: ubuntu-latest

    steps:
      - name: Checkout code
        uses: actions/checkout@v4

      - run: corepack enable
      - uses: actions/setup-node@v4
        with:
          node-version: 20

      - name: Install dependencies
        run: npm install

      - name: Build
        run: npm run prepublishOnly --if-present

      - run: npx pkg-pr-new publish
  • tsconfig.json
{
  "extends": "@eggjs/tsconfig",
  "compilerOptions": {
    "strict": true,
    "noImplicitAny": true,
    "target": "ES2022",
    "module": "NodeNext",
    "moduleResolution": "NodeNext"
  }
}
  • .eslintrc
{
  "extends": [
    "eslint-config-egg/typescript",
    "eslint-config-egg/lib/rules/enforce-node-prefix"
  ]
}
  • .gitignore
.tshy*
.eslintcache
dist
coverage

Sub Error

export class ClusterAgentWorkerError extends Error {
  id: number;
  /**
   * pid in process mode
   * tid in worker_threads mode
   */
  workerId: number;
  status: string;

  constructor(id: number, workerId: number, status: string, error: Error) {
    const message = `Got agent worker error: ${error.message}`;
    super(message, { cause: error });
    this.name = this.constructor.name;
    this.id = id;
    this.workerId = workerId;
    this.status = status;
    Error.captureStackTrace(this, this.constructor);
  }
}
@fengmk2 fengmk2 self-assigned this Sep 14, 2023
@fengmk2
Copy link
Member Author

fengmk2 commented Sep 15, 2023

node-modules/is-type-of#22
eggjs/bin#239 egg-bin 需要支持 esm 跑 test 和 cov

@fengmk2
Copy link
Member Author

fengmk2 commented Sep 16, 2023

@fengmk2
Copy link
Member Author

fengmk2 commented Sep 17, 2023

通过 https://github.com/node-modules/tshy-after 保留 package.json types 配置。

@fengmk2
Copy link
Member Author

fengmk2 commented Sep 22, 2023

node-modules/address#37

fengmk2 added a commit to node-modules/node-homedir that referenced this issue Oct 5, 2023
BREAKING CHANGE: Drop Node.js < 16 support

eggjs/egg#5257
@fengmk2
Copy link
Member Author

fengmk2 commented Oct 5, 2023

fengmk2 added a commit to node-modules/node-homedir that referenced this issue Oct 5, 2023
BREAKING CHANGE: Drop Node.js < 16 support

eggjs/egg#5257
fengmk2 pushed a commit to node-modules/node-homedir that referenced this issue Oct 5, 2023
[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))
@fengmk2
Copy link
Member Author

fengmk2 commented Oct 5, 2023

fengmk2 added a commit to node-modules/oss-client that referenced this issue Oct 5, 2023
BREAKING CHANGE: Drop Node.js < 16 support

Other BREAKING changes:
- remove stsToken support
- remove headerEncoding support
- remove Bucket, Image Client support

eggjs/egg#5257
fengmk2 pushed a commit to node-modules/oss-client that referenced this issue Oct 5, 2023
[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))
@fengmk2
Copy link
Member Author

fengmk2 commented Oct 10, 2023

fengmk2 added a commit to node-modules/get-ready that referenced this issue Oct 10, 2023
fengmk2 added a commit to node-modules/get-ready that referenced this issue Oct 10, 2023
fengmk2 pushed a commit to node-modules/ready-callback that referenced this issue Oct 11, 2023
BREAKING CHANGE: Drop Node.js < 16 support

closes #116

part of eggjs/egg#5257

---------

Co-authored-by: hanquliu <admin@hanquliu-Mini.local>
fengmk2 pushed a commit to node-modules/ready-callback that referenced this issue Oct 11, 2023
[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))
@fengmk2 fengmk2 pinned this issue Oct 14, 2023
fengmk2 added a commit to eggjs/egg-cors that referenced this issue Dec 11, 2023
BREAKING CHANGE: drop Node.js < 14

deps: use @koa/cors@5.0.0

eggjs/egg#5257
fengmk2 added a commit to eggjs/egg-cors that referenced this issue Dec 11, 2023
BREAKING CHANGE: drop Node.js < 16

deps: use @koa/cors@5.0.0

eggjs/egg#5257
fengmk2 added a commit to eggjs/egg-cors that referenced this issue Dec 11, 2023
BREAKING CHANGE: drop Node.js < 16

deps: use @koa/cors@5.0.0

eggjs/egg#5257
fengmk2 added a commit to eggjs/egg-cors that referenced this issue Dec 11, 2023
BREAKING CHANGE: drop Node.js < 14

eggjs/egg#5257
fengmk2 added a commit to node-modules/sdk-base that referenced this issue Dec 18, 2024
BREAKING CHANGE: drop Node.js < 18.19.0 support

part of eggjs/egg#3644

eggjs/egg#5257
fengmk2 added a commit to node-modules/sdk-base that referenced this issue Dec 18, 2024
BREAKING CHANGE: drop Node.js < 18.19.0 support

part of eggjs/egg#3644

eggjs/egg#5257
fengmk2 pushed a commit to node-modules/sdk-base that referenced this issue Dec 18, 2024
[skip ci]

## [5.0.0](v4.2.1...v5.0.0) (2024-12-18)

### ⚠ 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 ([#23](#23)) ([cde6773](cde6773))
fengmk2 added a commit to eggjs/watcher that referenced this issue Dec 18, 2024
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

- **New Features**
- Introduced new configuration files for managing watcher settings in
different environments (default, local, unittest).
- Added a new `Boot` class to manage application lifecycle and watcher
initialization.
- Implemented `Watcher` class for monitoring file changes with event
handling.
- Added `DevelopmentEventSource` and `DefaultEventSource` classes for
specific event source management.

- **Bug Fixes**
- Enhanced path handling in various modules to ensure correct file
watching functionality.

- **Documentation**
	- Updated `README.md` with project name change and improved structure.

- **Tests**
- Introduced new unit tests for watcher functionality and refactored
existing test files to improve clarity and structure.

- **Chores**
- Removed deprecated configuration files and streamlined project
structure.
	- Updated TypeScript configuration for stricter type-checking.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->
fengmk2 pushed a commit to eggjs/watcher that referenced this issue Dec 18, 2024
[skip ci]

## 1.0.0 (2024-12-18)

### ⚠ 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

- **New Features**
- Introduced new configuration files for managing watcher settings in
different environments (default, local, unittest).
- Added a new `Boot` class to manage application lifecycle and watcher
initialization.
- Implemented `Watcher` class for monitoring file changes with event
handling.
- Added `DevelopmentEventSource` and `DefaultEventSource` classes for
specific event source management.

- **Bug Fixes**
- Enhanced path handling in various modules to ensure correct file
watching functionality.

- **Documentation**
	- Updated `README.md` with project name change and improved structure.

- **Tests**
- Introduced new unit tests for watcher functionality and refactored
existing test files to improve clarity and structure.

- **Chores**
- Removed deprecated configuration files and streamlined project
structure.
	- Updated TypeScript configuration for stricter type-checking.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->

### Features

* [BREAK CHANGE]  use cluster-client ([#2](#2)) ([90a8b47](90a8b47))
* add event source event logs ([#9](#9)) ([b351795](b351795))
* pass custom options ([#4](#4)) ([cf9fcac](cf9fcac))
* support cjs and esm both by tshy ([#14](#14)) ([c80fea0](c80fea0))

### Bug Fixes

* should support watch one file multiple times ([#6](#6)) ([6d84e21](6d84e21))
* spell error on watcher.js ([#13](#13)) ([9ab2eed](9ab2eed))
fengmk2 pushed a commit to eggjs/watcher that referenced this issue Dec 18, 2024
[skip ci]

## [4.0.0](v3.1.1...v4.0.0) (2024-12-18)

### ⚠ 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

- **New Features**
- Introduced new configuration files for managing watcher settings in
different environments (default, local, unittest).
- Added a new `Boot` class to manage application lifecycle and watcher
initialization.
- Implemented `Watcher` class for monitoring file changes with event
handling.
- Added `DevelopmentEventSource` and `DefaultEventSource` classes for
specific event source management.

- **Bug Fixes**
- Enhanced path handling in various modules to ensure correct file
watching functionality.

- **Documentation**
	- Updated `README.md` with project name change and improved structure.

- **Tests**
- Introduced new unit tests for watcher functionality and refactored
existing test files to improve clarity and structure.

- **Chores**
- Removed deprecated configuration files and streamlined project
structure.
	- Updated TypeScript configuration for stricter type-checking.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->

### Features

* support cjs and esm both by tshy ([#14](#14)) ([c80fea0](c80fea0))
fengmk2 added a commit to node-modules/muk-prop.js that referenced this issue Dec 20, 2024
BREAKING CHANGE: drop Node.js < 18.19.0 support

part of eggjs/egg#3644

eggjs/egg#5257
fengmk2 added a commit to node-modules/muk-prop.js that referenced this issue Dec 20, 2024
BREAKING CHANGE: drop Node.js < 18.19.0 support

part of eggjs/egg#3644

eggjs/egg#5257
fengmk2 pushed a commit to node-modules/muk-prop.js that referenced this issue Dec 20, 2024
[skip ci]

## 1.0.0 (2024-12-20)

### ⚠ BREAKING CHANGES

* drop Node.js < 18.19.0 support

part of eggjs/egg#3644

eggjs/egg#5257

### Features

* add isMocked method to check if the member of the object is mocked ([986493c](986493c))
* reset package ([6779edb](6779edb))
* support cjs and esm both by tshy ([#2](#2)) ([49d3982](49d3982))
* support mock prop with getter setter ([#4](#4)) ([0ba2ae2](0ba2ae2))

### Bug Fixes

* can't redefine process.env when node<4 ([7de27b7](7de27b7)), closes [nodejs/node#2999](nodejs/node#2999)
* clear mock cache when restore ([790b26c](790b26c))
* hasOwnProperty not found ([5e40063](5e40063))
* muk can mock accessor descriptor now ([73001d7](73001d7))
* should check process.env ([1cefede](1cefede))
fengmk2 added a commit to node-modules/mm that referenced this issue Dec 20, 2024
BREAKING CHANGE: drop Node.js < 18.19.0 support

part of eggjs/egg#3644

eggjs/egg#5257
fengmk2 added a commit to node-modules/mm that referenced this issue Dec 20, 2024
BREAKING CHANGE: drop Node.js < 18.19.0 support

part of eggjs/egg#3644

eggjs/egg#5257
fengmk2 pushed a commit to node-modules/mm that referenced this issue Dec 20, 2024
[skip ci]

## [4.0.0](v3.4.0...v4.0.0) (2024-12-20)

### ⚠ 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 ([#61](#61)) ([f1eadcc](f1eadcc))
fengmk2 added a commit to eggjs/supertest that referenced this issue Dec 21, 2024
BREAKING CHANGE: drop Node.js < 18.19.0 support

part of eggjs/egg#3644

eggjs/egg#5257
fengmk2 added a commit to eggjs/supertest that referenced this issue Dec 21, 2024
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

- **New Features**
- Introduced a new `TestAgent` class for enhanced HTTP and HTTP/2
requests.
	- Added a new `Request` class to facilitate server requests.
	- Implemented a new `AssertError` class for improved error handling.
	- Created new GitHub Actions workflows for CI and package publishing.

- **Documentation**
- Updated the `README.md` to reflect rebranding to `@eggjs/supertest`
and revised installation instructions.

- **Bug Fixes**
	- Enhanced error handling and type safety in tests.

- **Chores**
	- Removed outdated configuration files and unnecessary dependencies.
	- Updated TypeScript configuration for stricter type checking.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->
fengmk2 pushed a commit to eggjs/supertest that referenced this issue Dec 21, 2024
[skip ci]

## [8.0.0](v7.0.0...v8.0.0) (2024-12-21)

### ⚠ 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

- **New Features**
- Introduced a new `TestAgent` class for enhanced HTTP and HTTP/2
requests.
	- Added a new `Request` class to facilitate server requests.
	- Implemented a new `AssertError` class for improved error handling.
	- Created new GitHub Actions workflows for CI and package publishing.

- **Documentation**
- Updated the `README.md` to reflect rebranding to `@eggjs/supertest`
and revised installation instructions.

- **Bug Fixes**
	- Enhanced error handling and type safety in tests.

- **Chores**
	- Removed outdated configuration files and unnecessary dependencies.
	- Updated TypeScript configuration for stricter type checking.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->

### Features

* support cjs and esm both by tshy ([#1](#1)) ([09fb755](09fb755))
fengmk2 added a commit to node-modules/pedding that referenced this issue Dec 22, 2024
BREAKING CHANGE: drop Node.js < 18.19.0 support

part of eggjs/egg#3644

eggjs/egg#5257
fengmk2 added a commit to node-modules/pedding that referenced this issue Dec 22, 2024
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

- **New Features**
- Introduced new workflows for continuous integration, package
publishing, and release management.
- Added TypeScript support with a new configuration file and strict
type-checking.
- New `pending` function implemented for managing callback execution
limits.
  
- **Bug Fixes**
- Corrected function name from `pedding` to `pending` in usage examples.

- **Documentation**
	- Updated `README.md` with new badges and improved usage examples.
	- Added MIT License to the project.

- **Chores**
- Removed outdated files and configurations, including `.jshintignore`,
`.travis.yml`, `AUTHORS`, and `component.json`.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
fengmk2 pushed a commit to node-modules/pedding that referenced this issue Dec 22, 2024
[skip ci]

## [2.0.0](v1.1.0...v2.0.0) (2024-12-22)

### ⚠ 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

- **New Features**
- Introduced new workflows for continuous integration, package
publishing, and release management.
- Added TypeScript support with a new configuration file and strict
type-checking.
- New `pending` function implemented for managing callback execution
limits.

- **Bug Fixes**
- Corrected function name from `pedding` to `pending` in usage examples.

- **Documentation**
	- Updated `README.md` with new badges and improved usage examples.
	- Added MIT License to the project.

- **Chores**
- Removed outdated files and configurations, including `.jshintignore`,
`.travis.yml`, `AUTHORS`, and `component.json`.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->

### Features

* support cjs and esm both by tshy ([#6](#6)) ([d2352dc](d2352dc))
fengmk2 added a commit to eggjs/bin that referenced this issue Dec 27, 2024
BREAKING CHANGE: drop Node.js < 18.19.0 support

part of eggjs/egg#3644

eggjs/egg#5257

use https://oclif.io

<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit

- **New Features**
	- Removed pull request template for contributors.
	- Introduced a new workflow for automating commit publishing.
	- Added scripts for executing Node.js applications in development mode.
	- Updated the README to reflect the new package name and other details.
	- Enhanced command classes for testing and development functionalities.
	- Added new utility functions for better path handling in tests.
	- Introduced new interface for package configuration.
	- Added support for TypeScript with updated configurations.
	- Implemented a new logging mechanism in hooks for better debugging.
- Introduced a new class for managing server readiness in demo
applications.

- **Bug Fixes**
- Adjusted import paths in tests for compatibility with new module
structure.

- **Documentation**
- Updated README and various documentation links to reflect changes in
package structure.

- **Chores**
- Updated package configurations, including versioning and dependencies.
	- Removed obsolete files and configurations from the project.
	- Enhanced test suite structure and clarity.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
fengmk2 pushed a commit to eggjs/bin that referenced this issue Dec 27, 2024
[skip ci]

## [7.0.0](v6.13.0...v7.0.0) (2024-12-27)

### ⚠ BREAKING CHANGES

* drop Node.js < 18.19.0 support

part of eggjs/egg#3644

eggjs/egg#5257

use https://oclif.io

<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit

- **New Features**
	- Removed pull request template for contributors.
	- Introduced a new workflow for automating commit publishing.
	- Added scripts for executing Node.js applications in development mode.
	- Updated the README to reflect the new package name and other details.
	- Enhanced command classes for testing and development functionalities.
	- Added new utility functions for better path handling in tests.
	- Introduced new interface for package configuration.
	- Added support for TypeScript with updated configurations.
	- Implemented a new logging mechanism in hooks for better debugging.
- Introduced a new class for managing server readiness in demo
applications.

- **Bug Fixes**
- Adjusted import paths in tests for compatibility with new module
structure.

- **Documentation**
- Updated README and various documentation links to reflect changes in
package structure.

- **Chores**
- Updated package configurations, including versioning and dependencies.
	- Removed obsolete files and configurations from the project.
	- Enhanced test suite structure and clarity.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->

### Features

* support cjs and esm both by tshy ([#279](#279)) ([7078748](7078748))
fengmk2 added a commit to eggjs/mock that referenced this issue Dec 29, 2024
BREAKING CHANGE: drop Node.js < 18.19.0 support

part of eggjs/egg#3644

eggjs/egg#5257
fengmk2 pushed a commit to eggjs/mock that referenced this issue Dec 29, 2024
[skip ci]

## [6.0.0](v5.15.1...v6.0.0) (2024-12-29)

### ⚠ 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 ([#178](#178)) ([674b1ca](674b1ca))
fengmk2 added a commit to eggjs/examples that referenced this issue Dec 29, 2024
BREAKING CHANGE: drop Node.js < 18.19.0 support

part of eggjs/egg#3644

eggjs/egg#5257
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: In Progress
Development

No branches or pull requests

2 participants