Skip to content

Commit

Permalink
0.4.0
Browse files Browse the repository at this point in the history
  • Loading branch information
yanhaijing committed Nov 21, 2023
1 parent 4b37f30 commit 38b8798
Show file tree
Hide file tree
Showing 8 changed files with 555 additions and 779 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [14.x, 16.x, 18.x]
node-version: [14.x, 16.x, 18.x, 20.x]
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
steps:
- uses: actions/checkout@v3
Expand Down
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# 变更日志

## 0.4.0 / 2023-11-19

- 升级 jslib-base 2.3.2
- 支持 sourceMap
- fix: 支持 node >=14.0.0

## 0.3.0 / 2023-9-24

- 升级最新版 jslib-base
Expand Down
2 changes: 1 addition & 1 deletion README-zh_CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
[![](https://img.shields.io/badge/Powered%20by-jslib%20pubsub-brightgreen.svg)](https://github.com/yanhaijing/jslib-pubsub)
[![license](https://img.shields.io/badge/license-MIT-blue.svg)](https://github.com/jsmini/pubsub/blob/master/LICENSE)
[![CI](https://github.com/jsmini/pubsub/actions/workflows/ci.yml/badge.svg?branch=master)](https://github.com/jsmini/pubsub/actions/workflows/ci.yml)
[![npm](https://img.shields.io/badge/npm-0.3.0-orange.svg)](https://www.npmjs.com/package/@jsmini/pubsub)
[![npm](https://img.shields.io/badge/npm-0.4.0-orange.svg)](https://www.npmjs.com/package/@jsmini/pubsub)
[![NPM downloads](http://img.shields.io/npm/dm/@jsmini/pubsub.svg?style=flat-square)](http://www.npmtrends.com/@jsmini/pubsub)
[![Percentage of issues still open](http://isitmaintained.com/badge/open/jsmini/pubsub.svg)](http://isitmaintained.com/project/jsmini/pubsub 'Percentage of issues still open')

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
[![](https://img.shields.io/badge/Powered%20by-jslib%20pubsub-brightgreen.svg)](https://github.com/yanhaijing/jslib-pubsub)
[![license](https://img.shields.io/badge/license-MIT-blue.svg)](https://github.com/jsmini/pubsub/blob/master/LICENSE)
[![CI](https://github.com/jsmini/pubsub/actions/workflows/ci.yml/badge.svg?branch=master)](https://github.com/jsmini/pubsub/actions/workflows/ci.yml)
[![npm](https://img.shields.io/badge/npm-0.3.0-orange.svg)](https://www.npmjs.com/package/@jsmini/pubsub)
[![npm](https://img.shields.io/badge/npm-0.4.0-orange.svg)](https://www.npmjs.com/package/@jsmini/pubsub)
[![NPM downloads](http://img.shields.io/npm/dm/@jsmini/pubsub.svg?style=flat-square)](http://www.npmtrends.com/@jsmini/pubsub)
[![Percentage of issues still open](http://isitmaintained.com/badge/open/jsmini/pubsub.svg)](http://isitmaintained.com/project/jsmini/pubsub 'Percentage of issues still open')

Expand Down
1 change: 1 addition & 0 deletions config/rollup.config.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ module.exports = {
// When export and export default are not used at the same time, set legacy to true.
// legacy: true,
banner: common.banner,
sourcemap: true,
},
],
plugins: [common.getCompiler()],
Expand Down
2 changes: 2 additions & 0 deletions config/rollup.config.esm.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,14 @@ module.exports = {
// When export and export default are not used at the same time, set legacy to true.
// legacy: true,
banner: common.banner,
sourcemap: true,
},
{
file: 'dist/index.mjs',
format: 'es',
// legacy: true,
banner: common.banner,
sourcemap: true,
},
],
plugins: [common.getCompiler()],
Expand Down
1,267 changes: 517 additions & 750 deletions package-lock.json

Large diffs are not rendered by default.

52 changes: 26 additions & 26 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@jsmini/pubsub",
"version": "0.3.0",
"version": "0.4.0",
"description": "A small yet beautiful PubSub library, implementing the Publisher-Subscriber pattern.",
"main": "dist/index.js",
"module": "dist/index.esm.js",
Expand All @@ -16,7 +16,7 @@
}
},
"scripts": {
"clean": "rimraf ./dist",
"clean": "rimraf ./dist ./types",
"lint": "eslint -c .eslintrc.cjs 'src/**/*.js'",
"build:self": "rollup -c config/rollup.config.cjs",
"build:esm": "rollup -c config/rollup.config.esm.cjs",
Expand All @@ -42,17 +42,17 @@
"url": "https://github.com/jsmini/pubsub/issues"
},
"dependencies": {
"@jsmini/event": "^0.7.0",
"@jsmini/is": "^0.9.0"
"@jsmini/event": "^0.8.0",
"@jsmini/is": "^0.10.0"
},
"files": [
"/dist",
"/types",
"*.d.ts"
],
"engines": {
"node": ">=18.18.0 <19.0.0",
"npm": ">=9.8.1 <10.0.0"
"node": ">=14.0.0",
"npm": ">=6.0.0"
},
"publishConfig": {
"registry": "https://registry.npmjs.org",
Expand All @@ -67,37 +67,37 @@
"babel-plugin-transform-runtime": "6.23.0",
"cdkit": "1.1.0",
"es5-shim": "^4.6.7",
"eslint": "^8.49.0",
"eslint": "^8.54.0",
"expect.js": "^0.3.1",
"mocha": "^10.2.0",
"rimraf": "^5.0.1",
"rollup": "^3.29.2",
"@js-lib/cli": "^2.2.1",
"rimraf": "^5.0.5",
"rollup": "^3.29.4",
"@js-lib/cli": "^2.3.2",
"cross-env": "^7.0.3",
"@babel/plugin-transform-runtime": "^7.22.15",
"@babel/preset-env": "^7.22.20",
"@babel/plugin-transform-runtime": "^7.23.3",
"@babel/preset-env": "^7.23.3",
"@babel/register": "^7.22.15",
"babel-plugin-istanbul": "^6.1.1",
"coveralls": "^3.1.1",
"nyc": "^15.1.0",
"source-map-support": "0.5.9",
"http-server": "^14.1.1",
"@babel/eslint-parser": "^7.22.15",
"@babel/eslint-parser": "^7.23.3",
"eslint-config-prettier": "^9.0.0",
"eslint-plugin-import": "^2.28.1",
"eslint-plugin-prettier": "^5.0.0",
"eslint-plugin-import": "^2.29.0",
"eslint-plugin-prettier": "^5.0.1",
"husky": "^8.0.0",
"lint-staged": "^14.0.1",
"prettier": "3.0.3",
"prettier": "3.1.0",
"commitizen": "^4.2.4",
"@commitlint/cli": "^16.2.1",
"@commitlint/config-conventional": "^16.2.1",
"@commitlint/cz-commitlint": "^16.2.1",
"@commitlint/format": "12.1.1",
"@commitlint/prompt-cli": "^16.2.1",
"@rollup/plugin-babel": "^6.0.3",
"@rollup/plugin-commonjs": "^25.0.4",
"@rollup/plugin-node-resolve": "^15.2.1",
"@rollup/plugin-terser": "^0.4.3"
"@commitlint/cli": "^16.3.0",
"@commitlint/config-conventional": "^16.2.4",
"@commitlint/cz-commitlint": "^16.3.0",
"@commitlint/format": "^12.1.1",
"@commitlint/prompt-cli": "^16.3.0",
"@rollup/plugin-babel": "^6.0.4",
"@rollup/plugin-commonjs": "^25.0.7",
"@rollup/plugin-node-resolve": "^15.2.3",
"@rollup/plugin-terser": "^0.4.4"
}
}
}

0 comments on commit 38b8798

Please sign in to comment.