Skip to content

Commit 14162c2

Browse files
committed
0.8.0
1 parent f6b2d0a commit 14162c2

8 files changed

+547
-771
lines changed

.github/workflows/ci.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ jobs:
3636
runs-on: ubuntu-latest
3737
strategy:
3838
matrix:
39-
node-version: [14.x, 16.x, 18.x]
39+
node-version: [14.x, 16.x, 18.x, 20.x]
4040
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
4141
steps:
4242
- uses: actions/checkout@v3

CHANGELOG.md

+6
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# 变更日志
22

3+
## 0.8.0 / 2023-11-19
4+
5+
- 升级 jslib-base 2.3.2
6+
- 支持 sourceMap
7+
- fix: 支持 node >=14.0.0
8+
39
## 0.7.0 / 2023-9-24
410

511
- 升级最新版 jslib-base

README-zh_CN.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
[![](https://img.shields.io/badge/Powered%20by-jslib%20base-brightgreen.svg)](https://github.com/yanhaijing/jslib-base)
44
[![license](https://img.shields.io/badge/license-MIT-blue.svg)](https://github.com/jsmini/inherits/blob/master/LICENSE)
55
[![CI](https://github.com/jsmini/inherits/actions/workflows/ci.yml/badge.svg?branch=master)](https://github.com/jsmini/inherits/actions/workflows/ci.yml)
6-
[![npm](https://img.shields.io/badge/npm-0.7.0-orange.svg)](https://www.npmjs.com/package/@jsmini/inherits)
6+
[![npm](https://img.shields.io/badge/npm-0.8.0-orange.svg)](https://www.npmjs.com/package/@jsmini/inherits)
77
[![NPM downloads](http://img.shields.io/npm/dm/@jsmini/inherits.svg?style=flat-square)](http://www.npmtrends.com/@jsmini/inherits)
88
[![Percentage of issues still open](http://isitmaintained.com/badge/open/jsmini/inherits.svg)](http://isitmaintained.com/project/jsmini/inherits 'Percentage of issues still open')
99

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
[![](https://img.shields.io/badge/Powered%20by-jslib%20base-brightgreen.svg)](https://github.com/yanhaijing/jslib-base)
44
[![license](https://img.shields.io/badge/license-MIT-blue.svg)](https://github.com/jsmini/inherits/blob/master/LICENSE)
55
[![CI](https://github.com/jsmini/inherits/actions/workflows/ci.yml/badge.svg?branch=master)](https://github.com/jsmini/inherits/actions/workflows/ci.yml)
6-
[![npm](https://img.shields.io/badge/npm-0.7.0-orange.svg)](https://www.npmjs.com/package/@jsmini/inherits)
6+
[![npm](https://img.shields.io/badge/npm-0.8.0-orange.svg)](https://www.npmjs.com/package/@jsmini/inherits)
77
[![NPM downloads](http://img.shields.io/npm/dm/@jsmini/inherits.svg?style=flat-square)](http://www.npmtrends.com/@jsmini/inherits)
88
[![Percentage of issues still open](http://isitmaintained.com/badge/open/jsmini/inherits.svg)](http://isitmaintained.com/project/jsmini/inherits 'Percentage of issues still open')
99

config/rollup.config.cjs

+1
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ module.exports = {
1111
// When export and export default are not used at the same time, set legacy to true.
1212
// legacy: true,
1313
banner: common.banner,
14+
sourcemap: true,
1415
},
1516
],
1617
plugins: [common.getCompiler()],

config/rollup.config.esm.cjs

+2
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,14 @@ module.exports = {
1111
// When export and export default are not used at the same time, set legacy to true.
1212
// legacy: true,
1313
banner: common.banner,
14+
sourcemap: true,
1415
},
1516
{
1617
file: 'dist/index.mjs',
1718
format: 'es',
1819
// legacy: true,
1920
banner: common.banner,
21+
sourcemap: true,
2022
},
2123
],
2224
plugins: [common.getCompiler()],

package-lock.json

+510-743
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+25-25
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
{
22
"name": "@jsmini/inherits",
3-
"version": "0.7.0",
3+
"version": "0.8.0",
44
"description": "A solution of inheritance before ES6, which can inherit the class of ES6, support babel and node perfectly. support ES3 and IE6",
55
"main": "dist/index.js",
66
"module": "dist/index.esm.js",
77
"sideEffects": false,
88
"scripts": {
9-
"clean": "rimraf ./dist",
9+
"clean": "rimraf ./dist ./types",
1010
"lint": "eslint -c .eslintrc.cjs 'src/**/*.js'",
1111
"build:self": "rollup -c config/rollup.config.cjs",
1212
"build:esm": "rollup -c config/rollup.config.esm.cjs",
@@ -41,50 +41,50 @@
4141
],
4242
"devDependencies": {
4343
"es5-shim": "^4.6.7",
44-
"eslint": "^8.49.0",
44+
"eslint": "^8.54.0",
4545
"expect.js": "^0.3.1",
4646
"mocha": "^10.2.0",
47-
"rollup": "^3.29.2",
48-
"@js-lib/cli": "^2.2.1",
47+
"rollup": "^3.29.4",
48+
"@js-lib/cli": "^2.3.2",
4949
"cross-env": "^7.0.3",
50-
"rimraf": "^5.0.1",
51-
"@babel/plugin-transform-runtime": "^7.22.15",
52-
"@babel/preset-env": "^7.22.20",
50+
"rimraf": "^5.0.5",
51+
"@babel/plugin-transform-runtime": "^7.23.3",
52+
"@babel/preset-env": "^7.23.3",
5353
"@babel/register": "^7.22.15",
5454
"babel-plugin-istanbul": "^6.1.1",
5555
"coveralls": "^3.1.1",
5656
"nyc": "^15.1.0",
5757
"source-map-support": "0.5.9",
5858
"http-server": "^14.1.1",
59-
"@babel/eslint-parser": "^7.22.15",
59+
"@babel/eslint-parser": "^7.23.3",
6060
"eslint-config-prettier": "^9.0.0",
61-
"eslint-plugin-import": "^2.28.1",
62-
"eslint-plugin-prettier": "^5.0.0",
61+
"eslint-plugin-import": "^2.29.0",
62+
"eslint-plugin-prettier": "^5.0.1",
6363
"husky": "^8.0.0",
6464
"lint-staged": "^14.0.1",
65-
"prettier": "3.0.3",
65+
"prettier": "3.1.0",
6666
"commitizen": "^4.2.4",
67-
"@commitlint/cli": "^16.2.1",
68-
"@commitlint/config-conventional": "^16.2.1",
69-
"@commitlint/cz-commitlint": "^16.2.1",
70-
"@commitlint/format": "12.1.1",
71-
"@commitlint/prompt-cli": "^16.2.1",
72-
"@rollup/plugin-babel": "^6.0.3",
73-
"@rollup/plugin-commonjs": "^25.0.4",
74-
"@rollup/plugin-node-resolve": "^15.2.1",
75-
"@rollup/plugin-terser": "^0.4.3"
67+
"@commitlint/cli": "^16.3.0",
68+
"@commitlint/config-conventional": "^16.2.4",
69+
"@commitlint/cz-commitlint": "^16.3.0",
70+
"@commitlint/format": "^12.1.1",
71+
"@commitlint/prompt-cli": "^16.3.0",
72+
"@rollup/plugin-babel": "^6.0.4",
73+
"@rollup/plugin-commonjs": "^25.0.7",
74+
"@rollup/plugin-node-resolve": "^15.2.3",
75+
"@rollup/plugin-terser": "^0.4.4"
7676
},
7777
"dependencies": {
78-
"@jsmini/is": "^0.9.0"
78+
"@jsmini/is": "^0.10.0"
7979
},
8080
"files": [
8181
"/dist",
8282
"/types",
8383
"*.d.ts"
8484
],
8585
"engines": {
86-
"node": ">=18.18.0 <19.0.0",
87-
"npm": ">=9.8.1 <10.0.0"
86+
"node": ">=14.0.0",
87+
"npm": ">=6.0.0"
8888
},
8989
"publishConfig": {
9090
"registry": "https://registry.npmjs.org",
@@ -105,4 +105,4 @@
105105
"path": "@commitlint/cz-commitlint"
106106
}
107107
}
108-
}
108+
}

0 commit comments

Comments
 (0)