Skip to content
This repository has been archived by the owner on Feb 26, 2024. It is now read-only.

Commit

Permalink
feat: Drop support for Node < v18 and rework all files
Browse files Browse the repository at this point in the history
BREAKING CHANGE: This commit updates numerous package versions in the yarn.lock file. The updated versions have included several new dependencies and removed a few no longer needed. This change aims to improve application performance and security by keeping all packages at their latest available version.
  • Loading branch information
hckhanh committed Feb 26, 2024
1 parent 9f583a3 commit dc18aa2
Show file tree
Hide file tree
Showing 697 changed files with 4,354 additions and 24,258 deletions.
4 changes: 0 additions & 4 deletions .eslintignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,3 @@
cjs
es
types

# Yarn
.yarn
.pnp.*
2 changes: 1 addition & 1 deletion .eslintrc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ extends:
- 'plugin:@typescript-eslint/recommended-requiring-type-checking'
parser: '@typescript-eslint/parser'
parserOptions:
ecmaVersion: 12
ecmaVersion: latest
sourceType: module
project: './tsconfig.json'
tsconfigRootDir: './'
Expand Down
3 changes: 0 additions & 3 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -1,4 +1 @@
* text=auto eol=lf

/.yarn/releases/** binary
/.yarn/plugins/** binary
8 changes: 5 additions & 3 deletions .github/workflows/gpr-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,16 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2.3.4
- uses: pnpm/action-setup@v3.0.0
- uses: actions/setup-node@v2.1.4
with:
cache: 'pnpm'
registry-url: https://npm.pkg.github.com/
- name: Build commonjs, es6, esnext and amd
run: |
yarn build:cjs
yarn build:es
yarn build:types
pnpm build:cjs
pnpm build:es
pnpm build:types
- name: Publish to gpr
run: npm publish
env:
Expand Down
8 changes: 5 additions & 3 deletions .github/workflows/jsr-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,16 @@ jobs:
id-token: write
steps:
- uses: actions/checkout@v2.3.4
- uses: pnpm/action-setup@v3.0.0
- uses: actions/setup-node@v2.1.4
with:
cache: 'pnpm'
registry-url: https://npm.pkg.github.com/
- name: Build commonjs, es6, esnext and amd
run: |
yarn build:cjs
yarn build:es
yarn build:types
pnpm build:cjs
pnpm build:es
pnpm build:types
- name: Install jq
uses: dcarbone/install-jq-action@v2.1.0
- name: Update version in deno.json
Expand Down
11 changes: 7 additions & 4 deletions .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,17 @@ jobs:
needs: test
steps:
- uses: actions/checkout@v2.3.4
- uses: pnpm/action-setup@v3.0.0
- uses: actions/setup-node@v2.1.4
with:
cache: 'pnpm'
- name: Build commonjs, es6, esnext and amd
run: |
yarn build:cjs
yarn build:es
yarn build:types
pnpm build:cjs
pnpm build:es
pnpm build:types
- name: Publish to npm
run: yarn release
run: pnpm release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
17 changes: 11 additions & 6 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,17 +11,20 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2.3.4
- uses: pnpm/action-setup@v3.0.0
- uses: actions/setup-node@v2.1.4
with:
cache: 'pnpm'
- name: Dependency check
run: yarn --immutable --immutable-cache --check-cache
run: pnpm --immutable
- name: Dependency cruiser check
run: yarn test:deps
run: pnpm test:deps
- name: Prettier check
run: yarn test:prettier
run: pnpm test:prettier
- name: ESLint check
run: yarn test:eslint
run: pnpm test:eslint
- name: Skypack check
run: yarn test:skypack
run: pnpm test:skypack
test:
needs: lints
runs-on: ubuntu-latest
Expand All @@ -30,9 +33,11 @@ jobs:
node: [18, 20, 21]
steps:
- uses: actions/checkout@v2.3.4
- uses: pnpm/action-setup@v3.0.0
- name: Set up Node.js ${{matrix.node}}
uses: actions/setup-node@v2.1.4
with:
node-version: ${{matrix.node}}
cache: 'pnpm'
- name: Unit tests
run: yarn test
run: pnpm test
12 changes: 3 additions & 9 deletions .nycrc
Original file line number Diff line number Diff line change
@@ -1,11 +1,5 @@
{
"include": [
"src/**/*.ts"
],
"reporter": [
"lcov"
],
"extension": [
".ts"
]
"include": ["src/**/*.ts"],
"reporter": ["lcov"],
"extension": [".ts"]
}
Loading

0 comments on commit dc18aa2

Please sign in to comment.