Skip to content

Commit a1a1d6b

Browse files
committed
[migrate] replace Fake Open-Source organization with Real Open-Source one
[optimize] upgrade to Node.js 22, PNPM 10, Husky 9 & other latest Upstream packages/actions
1 parent f9b482c commit a1a1d6b

File tree

6 files changed

+3720
-3556
lines changed

6 files changed

+3720
-3556
lines changed

.github/workflows/main.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,25 +7,25 @@ jobs:
77
Build-and-Publish:
88
runs-on: ubuntu-latest
99
steps:
10-
- uses: actions/checkout@v3
10+
- uses: actions/checkout@v4
1111

1212
- uses: pnpm/action-setup@v2
1313
with:
14-
version: 8
15-
- uses: actions/setup-node@v3
14+
version: 10
15+
- uses: actions/setup-node@v4
1616
with:
17-
node-version: 18
17+
node-version: 22
1818
registry-url: https://registry.npmjs.org
1919
cache: pnpm
2020
- name: Install Dependencies
2121
run: pnpm i --frozen-lockfile
2222

2323
- name: Build & Publish
24-
run: npm publish
24+
run: npm publish --access public --provenance
2525
env:
2626
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
2727
- name: Update document
28-
uses: peaceiris/actions-gh-pages@v3
28+
uses: peaceiris/actions-gh-pages@v4
2929
with:
3030
publish_dir: ./docs
3131
personal_token: ${{ secrets.GITHUB_TOKEN }}

.husky/pre-commit

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1 @@
1-
#!/bin/sh
2-
3-
. "$(dirname "$0")/_/husky.sh"
4-
51
npm test

.husky/pre-push

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1 @@
1-
#!/bin/sh
2-
3-
. "$(dirname "$0")/_/husky.sh"
4-
51
npm run build

ReadMe.md

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,15 @@
22

33
[Open-source licenses][1] filter algorithm library written in [TypeScript][2]
44

5-
[![NPM Dependency](https://img.shields.io/librariesio/github/kaiyuanshe/Open-Source-License-filter.svg)][3]
6-
[![CI & CD](https://github.com/kaiyuanshe/Open-Source-License-filter/actions/workflows/main.yml/badge.svg)][4]
5+
[![NPM Dependency](https://img.shields.io/librariesio/github/Open-Source-Bazaar/Open-Source-License-filter.svg)][3]
6+
[![CI & CD](https://github.com/Open-Source-Bazaar/Open-Source-License-filter/actions/workflows/main.yml/badge.svg)][4]
77

88
[![NPM](https://nodei.co/npm/license-filter.png?downloads=true&downloadRank=true&stars=true)][5]
99

1010
## Link
1111

12-
- Design document: https://kaiyuanshe.feishu.cn/wiki/wikcnRn5pkE3BSvqFUMkJPymaG3
13-
- UI implement: https://kaiyuanshe.cn/tool/license-filter
12+
- Design document: https://kaiyuanshe.feishu.cn/wiki/wikcnRn5pkE3BSvqFUMkJPymaG3
13+
- UI implement: https://oss-toolbox.kaiyuanshe.cn/license-filter
1414

1515
## Usage
1616

@@ -63,13 +63,11 @@ console.log(list); // filtered licenses
6363
### Filter Algorithm
6464

6565
1. Mark the weight of various Open-source licenses according to the above Evaluation dimensions:
66-
6766
1. Positive `+1`: clearly supports the feature of this dimension
6867
2. Undefined `0`: no explicit mention of the dimension's feature
6968
3. Negative `-1`: clearly oppose the characteristics of this dimension
7069

7170
2. Input the user's Attitude towards the above dimensional features:
72-
7371
1. Positive `+1`: definitely need the feature of this dimension
7472
2. Undefined `0`: insensitive to the feature of this dimension
7573
3. Negative `-1`: explicitly reject the feature of this dimension
@@ -94,8 +92,8 @@ https://kaiyuanshe.cn/license-tool/
9492

9593
#### Code
9694

97-
- Page: https://github.com/kaiyuanshe/kaiyuanshe.github.io/blob/hexo/themes/Electron/layout/license-tool.ejs
98-
- Logic: https://github.com/kaiyuanshe/kaiyuanshe.github.io/tree/hexo/themes%2FElectron%2Fsource%2FOSLS
95+
- Page: https://github.com/kaiyuanshe/kaiyuanshe.github.io/blob/hexo/themes/Electron/layout/license-tool.ejs
96+
- Logic: https://github.com/kaiyuanshe/kaiyuanshe.github.io/tree/hexo/themes%2FElectron%2Fsource%2FOSLS
9997

10098
### New Chinese Edition
10199

@@ -124,5 +122,5 @@ https://mp.weixin.qq.com/s/ja_w-2NNSIKcO4vv7iN5vg
124122
[1]: https://opensource.org/licenses
125123
[2]: https://www.typescriptlang.org/
126124
[3]: https://libraries.io/npm/license-filter
127-
[4]: https://github.com/kaiyuanshe/Open-Source-License-filter/actions/workflows/main.yml
125+
[4]: https://github.com/Open-Source-Bazaar/Open-Source-License-filter/actions/workflows/main.yml
128126
[5]: https://nodei.co/npm/license-filter/

package.json

Lines changed: 25 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "license-filter",
3-
"version": "0.2.4",
3+
"version": "0.2.5",
44
"license": "LGPL-3.0",
55
"author": "[email protected]",
66
"description": "Open-source licenses filter algorithm library written in TypeScript",
@@ -12,35 +12,43 @@
1212
"algorithm",
1313
"typescript"
1414
],
15-
"homepage": "https://kaiyuanshe.github.io/Open-Source-License-filter/",
15+
"homepage": "https://open-source-bazaar.github.io/Open-Source-License-filter/",
1616
"repository": {
1717
"type": "git",
18-
"url": "git+https://github.com/kaiyuanshe/Open-Source-License-filter.git"
18+
"url": "git+https://github.com/Open-Source-Bazaar/Open-Source-License-filter.git"
1919
},
2020
"bugs": {
21-
"url": "https://github.com/kaiyuanshe/Open-Source-License-filter/issues"
21+
"url": "https://github.com/Open-Source-Bazaar/Open-Source-License-filter/issues"
2222
},
2323
"source": "source/index.ts",
2424
"types": "dist/index.d.ts",
2525
"main": "dist/index.js",
2626
"module": "dist/index.esm.js",
2727
"dependencies": {
28-
"@swc/helpers": "^0.5.3"
28+
"@swc/helpers": "^0.5.17"
2929
},
3030
"devDependencies": {
31-
"@parcel/packager-ts": "^2.10.2",
32-
"@parcel/transformer-typescript-types": "^2.10.2",
33-
"@types/jest": "^29.5.7",
34-
"husky": "^8.0.3",
31+
"@parcel/packager-ts": "~2.15.4",
32+
"@parcel/transformer-typescript-types": "~2.15.4",
33+
"@types/jest": "^29.5.14",
34+
"husky": "^9.1.7",
3535
"jest": "^29.7.0",
36-
"lint-staged": "^15.0.2",
37-
"open-cli": "^7.2.0",
38-
"parcel": "~2.10.2",
39-
"prettier": "^3.0.3",
40-
"ts-jest": "^29.1.1",
41-
"typedoc": "^0.25.3",
42-
"typedoc-plugin-mdn-links": "^3.1.0",
43-
"typescript": "~5.2.2"
36+
"lint-staged": "^16.1.2",
37+
"open-cli": "^8.0.0",
38+
"parcel": "~2.15.4",
39+
"prettier": "^3.6.2",
40+
"ts-jest": "^29.4.0",
41+
"typedoc": "^0.28.7",
42+
"typedoc-plugin-mdn-links": "^5.0.2",
43+
"typescript": "~5.8.3"
44+
},
45+
"pnpm": {
46+
"onlyBuiltDependencies": [
47+
"@parcel/watcher",
48+
"@swc/core",
49+
"lmdb",
50+
"msgpackr-extract"
51+
]
4452
},
4553
"prettier": {
4654
"singleQuote": true,

0 commit comments

Comments
 (0)