-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
102 changed files
with
3,325 additions
and
9,070 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,4 +13,4 @@ runs: | |
- uses: google/wireit@setup-github-actions-caching/v2 | ||
|
||
- run: npm ci | ||
shell: bash | ||
shell: bash |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
name: Build and test | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
- next | ||
|
||
pull_request: | ||
branches: | ||
- main | ||
- next | ||
|
||
jobs: | ||
lint: | ||
name: Lint | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: ./.github/actions/setup-node | ||
- run: npm run lint | ||
|
||
build: | ||
name: Build | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: ./.github/actions/setup-node | ||
- run: npm run build | ||
|
||
test: | ||
strategy: | ||
matrix: | ||
version: [18, 20, 22] | ||
name: Test on node v${{ matrix.version }} | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- uses: actions/setup-node@v4 | ||
with: | ||
node-version: ${{ matrix.version }} | ||
cache: npm | ||
|
||
- uses: google/wireit@setup-github-actions-caching/v2 | ||
- run: npm ci | ||
- run: npm run test |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
lts/iron |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
## [2.2.4-next.4](https://github.com/laurence79/ts-array-extensions/compare/2.2.4-next.3...2.2.4-next.4) (2025-01-16) | ||
|
||
|
||
### Bug Fixes | ||
|
||
* Missing file extensions on compact and compactMap ([947af23](https://github.com/laurence79/ts-array-extensions/commit/947af237e69aa9054cb876e6e4b40e7eef919f42)) | ||
|
||
## [2.2.4-next.3](https://github.com/laurence79/ts-array-extensions/compare/2.2.4-next.2...2.2.4-next.3) (2025-01-16) | ||
|
||
|
||
### Bug Fixes | ||
|
||
* Types not included in package ([54f6f44](https://github.com/laurence79/ts-array-extensions/commit/54f6f4416f50d29d4eafbc268349cdff258c4128)) | ||
|
||
## [2.2.4-next.2](https://github.com/laurence79/ts-array-extensions/compare/2.2.4-next.1...2.2.4-next.2) (2025-01-16) | ||
|
||
|
||
### Bug Fixes | ||
|
||
* Files not exported ([a73812f](https://github.com/laurence79/ts-array-extensions/commit/a73812fa5b65756d8333956f4680d4b470b717f0)) | ||
|
||
## [2.2.4-next.1](https://github.com/laurence79/ts-array-extensions/compare/2.2.3...2.2.4-next.1) (2025-01-16) | ||
|
||
|
||
### Bug Fixes | ||
|
||
* Individual functions are not exported ([#36](https://github.com/laurence79/ts-array-extensions/issues/36)) ([316690e](https://github.com/laurence79/ts-array-extensions/commit/316690ed8a4dc06a61f923bc47bd4681e26682e0)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
// @ts-check | ||
|
||
import eslint from '@eslint/js'; | ||
import tseslint from 'typescript-eslint'; | ||
import eslintPluginImportX from 'eslint-plugin-import-x'; | ||
import eslintPluginPrettierRecommended from 'eslint-plugin-prettier/recommended'; | ||
import globals from 'globals'; | ||
import jest from 'eslint-plugin-jest'; | ||
|
||
export default tseslint.config( | ||
{ | ||
ignores: ['dist/**/*.*', '.tshy/**/*.*', '.wireit/**/*.*'] | ||
}, | ||
|
||
eslint.configs.recommended, | ||
|
||
...tseslint.configs.strictTypeChecked, | ||
...tseslint.configs.stylisticTypeChecked, | ||
|
||
eslintPluginImportX.flatConfigs.recommended, | ||
eslintPluginImportX.flatConfigs.typescript, | ||
|
||
{ | ||
rules: { | ||
'import-x/order': 'error', | ||
'@typescript-eslint/array-type': 'off', | ||
'@typescript-eslint/no-unnecessary-condition': 'off', | ||
'import-x/no-named-as-default-member': 'off', | ||
'@typescript-eslint/unified-signatures': 'off', | ||
'@typescript-eslint/consistent-type-definitions': 'off', | ||
'@typescript-eslint/no-unnecessary-type-parameters': 'off' | ||
} | ||
}, | ||
|
||
{ | ||
languageOptions: { | ||
parserOptions: { | ||
projectService: { | ||
allowDefaultProject: ['*.js', '*.cjs'], | ||
defaultProject: 'tsconfig.json' | ||
}, | ||
tsconfigRootDir: import.meta.dirname | ||
}, | ||
globals: globals.node | ||
} | ||
}, | ||
|
||
eslintPluginPrettierRecommended, | ||
|
||
{ | ||
files: ['**/*.js'], | ||
rules: { | ||
'@typescript-eslint/no-require-imports': 'off' | ||
} | ||
}, | ||
|
||
{ | ||
files: ['**/*.spec.*', '**/jest.*'], | ||
plugins: { jest: jest }, | ||
languageOptions: { | ||
globals: { | ||
...globals.jest, | ||
...globals.node, | ||
...jest.environments.globals.globals | ||
} | ||
} | ||
} | ||
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
/** @type {import('jest').Config} */ | ||
const config = { | ||
roots: ['<rootDir>/src'], | ||
testEnvironment: 'node', | ||
transform: { | ||
'^.+\\.(t|j)sx?$': '@swc/jest' | ||
}, | ||
moduleNameMapper: { | ||
'^(\\.{1,2}/.*)\\.js$': '$1' | ||
}, | ||
extensionsToTreatAsEsm: ['.ts'] | ||
}; | ||
|
||
module.exports = config; |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.