Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
File renamed without changes.
35 changes: 35 additions & 0 deletions .github/dependabot.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
version: 2

updates:

# Maintain dependencies for GitHub Actions
- package-ecosystem: github-actions
directory: /
schedule:
interval: monthly
day: monday
commit-message:
prefix: ci(deps)
labels:
- ci
- dependencies
- triage
reviewers:
- extremejs/maintainers

# Maintain dependencies for NPM
- package-ecosystem: npm
directory: /
schedule:
interval: monthly
day: monday
commit-message:
prefix: build(deps)
prefix-development: build(dev-deps)
labels:
- npm
- dependencies
- triage
versioning-strategy: increase
reviewers:
- extremejs/maintainers
27 changes: 0 additions & 27 deletions .github/renovate.json

This file was deleted.

44 changes: 25 additions & 19 deletions .github/workflows/release.yml → .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,12 @@ on:
- 'v[0-9]+.[0-9]+.[0-9]+*'

env:
NODE_VERSION: 18
NODE_VERSION: 20
PNPM_VERSION: 9

jobs:
test:
uses: ./.github/workflows/test.yml
uses: ./.github/workflows/test.yaml

release:
name: Create Release
Expand All @@ -32,11 +33,11 @@ jobs:
release-id: ${{ steps.changelog.outputs.release-id }}

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Changelog
id: changelog
uses: ardalanamini/auto-changelog@v3
uses: ardalanamini/auto-changelog@v4

- name: Create Release
uses: softprops/action-gh-release@v1
Expand Down Expand Up @@ -67,15 +68,15 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Use PNPM
uses: pnpm/action-setup@v2
- name: Use PNPM ${{ env.PNPM_VERSION }}
uses: pnpm/action-setup@v3
with:
version: 8
version: ${{ env.PNPM_VERSION }}

- name: Use Node.js ${{ env.NODE_VERSION }}
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
cache: pnpm
node-version: ${{ env.NODE_VERSION }}
Expand Down Expand Up @@ -107,6 +108,7 @@ jobs:
permissions:
contents: read
packages: write
id-token: write

environment:
name: gpr
Expand All @@ -119,15 +121,15 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Use PNPM
uses: pnpm/action-setup@v2
- name: Use PNPM ${{ env.PNPM_VERSION }}
uses: pnpm/action-setup@v3
with:
version: 8
version: ${{ env.PNPM_VERSION }}

- name: Use Node.js ${{ env.NODE_VERSION }}
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
cache: pnpm
node-version: ${{ env.NODE_VERSION }}
Expand All @@ -148,6 +150,10 @@ jobs:
needs:
- release

permissions:
contents: read
id-token: write

environment:
name: npm
url: https://www.npmjs.com/package/@${{ github.repository }}
Expand All @@ -159,15 +165,15 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Use PNPM
uses: pnpm/action-setup@v2
- name: Use PNPM ${{ env.PNPM_VERSION }}
uses: pnpm/action-setup@v3
with:
version: 8
version: ${{ env.PNPM_VERSION }}

- name: Use Node.js ${{ env.NODE_VERSION }}
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
cache: pnpm
node-version: ${{ env.NODE_VERSION }}
Expand Down
38 changes: 20 additions & 18 deletions .github/workflows/test.yml → .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@ concurrency:
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}

env:
NODE_VERSION: 18
NODE_VERSION: 20
PNPM_VERSION: 9

jobs:
build:
Expand All @@ -23,17 +24,17 @@ jobs:
timeout-minutes: 15

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Use PNPM
uses: pnpm/action-setup@v2
- name: Use PNPM ${{ env.PNPM_VERSION }}
uses: pnpm/action-setup@v3
with:
version: 8
version: ${{ env.PNPM_VERSION }}

- name: Use Node.js ${{ env.NODE_VERSION }}
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
cache: pnpm
node-version: ${{ env.NODE_VERSION }}
Expand Down Expand Up @@ -64,24 +65,24 @@ jobs:
- ubuntu-latest
- windows-latest
node-version:
- 16
- 18
- 20
- 22

runs-on: ${{ matrix.os }}

timeout-minutes: 15

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Use PNPM
uses: pnpm/action-setup@v2
- name: Use PNPM ${{ env.PNPM_VERSION }}
uses: pnpm/action-setup@v3
with:
version: 8
version: ${{ env.PNPM_VERSION }}

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
cache: pnpm
node-version: ${{ matrix.node-version }}
Expand All @@ -104,15 +105,15 @@ jobs:
timeout-minutes: 15

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Use PNPM
uses: pnpm/action-setup@v2
- name: Use PNPM ${{ env.PNPM_VERSION }}
uses: pnpm/action-setup@v3
with:
version: 8
version: ${{ env.PNPM_VERSION }}

- name: Use Node.js ${{ env.NODE_VERSION }}
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
cache: pnpm
node-version: ${{ env.NODE_VERSION }}
Expand All @@ -128,10 +129,11 @@ jobs:
run: pnpm test:coverage --ci --no-cache --maxWorkers ${{ steps.cpu-cores.outputs.count }}

- name: Upload coverage to CodeCov
uses: codecov/codecov-action@v3
uses: codecov/codecov-action@v4
with:
env_vars: NODE_VERSION,REF
fail_ci_if_error: true
token: ${{ secrets.CODECOV_TOKEN }}
env:
NODE_VERSION: ${{ env.NODE_VERSION }}
REF: ${{ github.ref_name }}
Expand Down
3 changes: 0 additions & 3 deletions .husky/commit-msg
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

[ -n "$CI" ] && exit 0

pnpm commitlint --edit "$1"
3 changes: 0 additions & 3 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

[ -n "$CI" ] && exit 0

pnpm lint
Expand Down
6 changes: 3 additions & 3 deletions .npmignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@ coverage/
docs/
scripts/
tests/
jest.config.js
jest.config.ts
nodemon.json
typedoc.json
tsconfig*.json
*.tsbuildinfo
.gitattributes
.eslintrc.yml
commitlint.config.cjs
.eslintrc.yaml
commitlint.config.ts
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2022-2023 ExtremeJS
Copyright (c) 2022-2024 ExtremeJS

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
2 changes: 1 addition & 1 deletion commitlint.config.cjs → commitlint.config.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module.exports = {
export default {
extends: ["@commitlint/config-conventional"],
rules : {
"signed-off-by": [2, "always"],
Expand Down
20 changes: 7 additions & 13 deletions jest.config.js → jest.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,8 @@
* https://jestjs.io/docs/configuration
*/

/**
*
* @type {import("jest").Config}
*/
import { type Config } from "jest";

export default {
// All imported modules in your tests should be mocked automatically
// automock: false,
Expand Down Expand Up @@ -116,7 +114,7 @@ export default {
// notifyMode: "failure-change",

// A preset that is used as a base for Jest's configuration
preset: "ts-jest",
// preset: "ts-jest",

// Run tests from one or more projects.
// projects: undefined,
Expand Down Expand Up @@ -192,13 +190,7 @@ export default {

// A map from regular expressions to paths to transformers
transform: {
"^.+\\.tsx?$": [
"ts-jest",
{
tsconfig : "tsconfig.json",
isolatedModules: true,
},
],
"^.+\\.[cm]?tsx?$": "@swc/jest",
},

/**
Expand All @@ -224,4 +216,6 @@ export default {

// Whether to use watchman for file crawling
// watchman: true,
};

logHeapUsage: true,
} satisfies Config;
2 changes: 1 addition & 1 deletion nodemon.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"restartable": "rs",
"exec": "npm run build",
"exec": "pnpm build",
"watch": [
"src/"
],
Expand Down
Loading