Skip to content

Commit

Permalink
0.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
yanhaijing committed Nov 21, 2023
1 parent 5ca3585 commit 6e8bf75
Show file tree
Hide file tree
Showing 8 changed files with 717 additions and 563 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: [16.x, 18.x]
node-version: [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
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# 变更日志

## 0.2.0 / 2023-11-19

- 升级 jslib-base 2.3.2
- 支持 sourceMap

## 0.1.0 / 2023-10-1

- 新增 `getSelector` 函数
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%20base-brightgreen.svg)](https://github.com/yanhaijing/jslib-base)
[![license](https://img.shields.io/badge/license-MIT-blue.svg)](https://github.com/jsmini/get-selector/blob/master/LICENSE)
[![CI](https://github.com/jsmini/get-selector/actions/workflows/ci.yml/badge.svg?branch=master)](https://github.com/jsmini/get-selector/actions/workflows/ci.yml)
[![npm](https://img.shields.io/badge/npm-0.1.0-orange.svg)](https://www.npmjs.com/package/@jsmini/get-selector)
[![npm](https://img.shields.io/badge/npm-0.2.0-orange.svg)](https://www.npmjs.com/package/@jsmini/get-selector)
[![NPM downloads](http://img.shields.io/npm/dm/get-selector.svg?style=flat-square)](http://www.npmtrends.com/@jsmini/get-selector)
[![Percentage of issues still open](http://isitmaintained.com/badge/open/jsmini/get-selector.svg)](http://isitmaintained.com/project/jsmini/get-selector '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 @@ -10,6 +10,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,214 changes: 679 additions & 535 deletions package-lock.json

Large diffs are not rendered by default.

50 changes: 26 additions & 24 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@jsmini/get-selector",
"version": "0.1.0",
"version": "0.2.0",
"description": "获取 DOM 元素的 CSS 选择器,类似 Chrome 浏览器的 copy selector 功能,但支持获取更短的 CSS 选择器",
"sideEffects": false,
"main": "dist/index.js",
Expand Down Expand Up @@ -56,41 +56,41 @@
"access": "public"
},
"devDependencies": {
"@babel/plugin-transform-runtime": "^7.22.15",
"@babel/preset-env": "^7.22.20",
"@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",
"@js-lib/cli": "^2.2.6",
"@jsmini/extend": "^0.3.3",
"@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",
"@typescript-eslint/eslint-plugin": "^6.7.2",
"@typescript-eslint/parser": "^6.7.2",
"@babel/plugin-transform-runtime": "^7.23.3",
"@babel/preset-env": "^7.23.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",
"@js-lib/cli": "^2.3.2",
"@jsmini/extend": "^0.4.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",
"@typescript-eslint/eslint-plugin": "^6.11.0",
"@typescript-eslint/parser": "^6.11.0",
"babel-plugin-istanbul": "^6.1.1",
"commitizen": "^4.2.4",
"coveralls": "^3.1.1",
"cross-env": "^7.0.3",
"es5-shim": "^4.6.7",
"eslint": "^8.49.0",
"eslint": "^8.54.0",
"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",
"expect.js": "^0.3.1",
"http-server": "^14.1.1",
"husky": "^8.0.0",
"lint-staged": "^14.0.1",
"mocha": "^10.2.0",
"mocha-jsdom": "^2.0.0",
"nyc": "^15.1.0",
"prettier": "3.0.3",
"rimraf": "^5.0.1",
"rollup": "^3.29.2",
"rollup-plugin-typescript2": "^0.35.0",
"prettier": "3.1.0",
"rimraf": "^5.0.5",
"rollup": "^3.29.4",
"rollup-plugin-typescript2": "^0.36.0",
"source-map-support": "^0.5.21",
"ts-node": "^10.9.1",
"tslib": "^2.6.2",
Expand All @@ -100,5 +100,7 @@
"commitizen": {
"path": "@commitlint/cz-commitlint"
}
},
"dependencies": {
}
}
}
4 changes: 2 additions & 2 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
/* Modules */
"module": "CommonJS" /* Specify what module code is generated. */,
// "rootDir": "./", /* Specify the root folder within your source files. */
// "moduleResolution": "node", /* Specify how TypeScript looks up a file from a given module specifier. */
"moduleResolution": "node", /* Specify how TypeScript looks up a file from a given module specifier. */
// "baseUrl": "./", /* Specify the base directory to resolve non-relative module names. */
// "paths": {}, /* Specify a set of entries that re-map imports to additional lookup locations. */
// "rootDirs": [], /* Allow multiple folders to be treated as one when resolving modules. */
Expand All @@ -49,7 +49,7 @@
// "declaration": true, /* Generate .d.ts files from TypeScript and JavaScript files in your project. */
// "declarationMap": true, /* Create sourcemaps for d.ts files. */
// "emitDeclarationOnly": true, /* Only output d.ts files and not JavaScript files. */
// "sourceMap": true, /* Create source map files for emitted JavaScript files. */
"sourceMap": true, /* Create source map files for emitted JavaScript files. */
// "outFile": "./", /* Specify a file that bundles all outputs into one JavaScript file. If 'declaration' is true, also designates a file that bundles all .d.ts output. */
// "outDir": "./", /* Specify an output folder for all emitted files. */
// "removeComments": true, /* Disable emitting comments. */
Expand Down

0 comments on commit 6e8bf75

Please sign in to comment.