-
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.
[chore] Bump version, update deps, tools
- Loading branch information
Showing
28 changed files
with
3,240 additions
and
1,674 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
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,70 @@ | ||
import globals from "globals"; | ||
import pluginJs from "@eslint/js"; | ||
import tseslint from "typescript-eslint"; | ||
import eslintConfigPrettier from "eslint-config-prettier"; | ||
import jest from "eslint-plugin-jest"; | ||
|
||
|
||
export default [ | ||
{ | ||
files: ["**/*.{js,mjs,cjs,ts,jsx,tsx}"], | ||
ignores: [ | ||
'/.git/*', | ||
'/.github/*', | ||
'/.husky/*', | ||
'/.vscode/*', | ||
'/es/*', | ||
'/example/*' | ||
], | ||
}, | ||
{ | ||
languageOptions: { | ||
globals: { | ||
...globals.browser, | ||
...globals.node | ||
}, | ||
}, | ||
}, | ||
pluginJs.configs.recommended, | ||
...tseslint.configs.recommended, | ||
eslintConfigPrettier, | ||
{ | ||
rules: { | ||
'@typescript-eslint/no-use-before-define': 'off', | ||
'@typescript-eslint/no-unused-vars': 'off', | ||
'@typescript-eslint/no-explicit-any': 'off', | ||
'@typescript-eslint/no-empty-function': 'off', | ||
'@typescript-eslint/ban-ts-comment': 'off', | ||
'@typescript-eslint/ban-types': [ | ||
'error', | ||
{ | ||
extendDefaults: true, | ||
types: { | ||
'{}': false, | ||
Function: false, | ||
}, | ||
}, | ||
], | ||
'import/no-anonymous-default-export': 'off', | ||
'import/prefer-default-export': 'off', | ||
'@typescript-eslint/naming-convention': [ | ||
'error', | ||
{ | ||
selector: 'variableLike', | ||
format: ['camelCase', 'PascalCase'], | ||
}, | ||
], | ||
}, | ||
}, | ||
{ | ||
files: ["tests/**"], | ||
...jest.configs['flat/recommended'], | ||
rules: { | ||
...jest.configs['flat/recommended'].rules, | ||
'@typescript-eslint/no-unused-vars': 'off', | ||
'jest/valid-expect': 0, | ||
'jest/valid-expect-in-promise': 0, | ||
'jest/no-jasmine-globals': 'off', | ||
}, | ||
}, | ||
]; |
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 |
---|---|---|
@@ -0,0 +1,38 @@ | ||
import type { JestConfigWithTsJest } from 'ts-jest'; | ||
|
||
const jestConfig: JestConfigWithTsJest = { | ||
verbose: true, | ||
preset: 'ts-jest/presets/js-with-ts-esm', | ||
testEnvironment: 'node', | ||
testPathIgnorePatterns: [ | ||
'/.git/', | ||
'/.github/', | ||
'/.husky/', | ||
'/.vscode/', | ||
'/docs/', | ||
'/es/', | ||
'/lib/', | ||
'/node_modules/', | ||
'/src/', | ||
], | ||
transformIgnorePatterns: ['node_modules/(?!(lodash-es)/)'], | ||
collectCoverageFrom: ['./src/**/*.{js,jsx,ts,tsx}'], | ||
coverageProvider: 'v8', | ||
extensionsToTreatAsEsm: ['.ts'], | ||
moduleNameMapper: { | ||
'^(\\.{1,2}/.*)\\.js$': '$1', | ||
}, | ||
transform: { | ||
// '^.+\\.[tj]sx?$' to process ts,js,tsx,jsx with `ts-jest` | ||
// '^.+\\.m?[tj]sx?$' to process ts,js,tsx,jsx,mts,mjs,mtsx,mjsx with `ts-jest` | ||
'^.+\\.tsx?$': [ | ||
'ts-jest', | ||
{ | ||
useESM: true, | ||
}, | ||
], | ||
}, | ||
setupFilesAfterEnv: ['jest-extended'], | ||
}; | ||
|
||
export default jestConfig; |
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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{ | ||
"name": "@agentlab/sparql-jsld-client", | ||
"version": "5.0.9", | ||
"version": "5.0.10", | ||
"description": "SPARQL JSON Schema Linked Data Client", | ||
"license": "GPL-3.0", | ||
"author": "Alexey Ivanov <[email protected]>", | ||
|
@@ -28,96 +28,98 @@ | |
"bugs": { | ||
"url": "https://github.com/agentlab/sparql-jsld-client/issues" | ||
}, | ||
"main": "es/index.js", | ||
"module": "es/index.js", | ||
"typings": "es/index.d.ts", | ||
"main": "es/index.mjs", | ||
"module": "es/index.mjs", | ||
"typings": "es/index.mjs.d.ts", | ||
"files": [ | ||
"es", | ||
"src" | ||
], | ||
"type": "module", | ||
"engines": { | ||
"node": ">=16" | ||
"node": ">=22" | ||
}, | ||
"scripts": { | ||
"clean": "rimraf dist es lib", | ||
"start": "rollup -w", | ||
"build": "yarn clean && rollup -c", | ||
"build-tsc": "yarn tsc --project ./tsconfig-build.json", | ||
"test": "cross-env NODE_ENV=--experimental-vm-modules jest", | ||
"test": "cross-env NODE_ENV=--experimental-vm-modules jest --runInBand", | ||
"test:ci": "cross-env NODE_ENV=--experimental-vm-modules jest --ci --coverage --maxWorkers=2", | ||
"lint": "eslint \"{src,stories,test}**/*.{js,jsx,ts,tsx}\"", | ||
"prepare": "husky install && yarn build", | ||
"storybook": "start-storybook -p 6006", | ||
"build-storybook": "build-storybook", | ||
"prepare": "husky && yarn build", | ||
"format": "./node_modules/.bin/prettier --write \"{src,stories,test}/**/*.{js,jsx,ts,tsx,json,md}\"", | ||
"lint-staged": "lint-staged" | ||
}, | ||
"peerDependencies": { | ||
"axios": ">=0.27.2", | ||
"axios": ">=1.7.2", | ||
"dayjs": ">=1.11.12", | ||
"is-url": ">=1.2.4", | ||
"jsonld": ">=5.2.0", | ||
"jsonld": ">=8.3.2", | ||
"lodash-es": ">=4.17.21", | ||
"mobx": ">=6.6.0", | ||
"mobx-state-tree": ">=5.1.5", | ||
"moment": ">=2.29.3", | ||
"rdf-data-factory": ">=1.1.0", | ||
"rdf-literal": ">=1.3.0", | ||
"sparqljs": ">=3.5.2", | ||
"utility-types": ">=3.10.0", | ||
"mobx": ">=6.13.1", | ||
"mobx-state-tree": ">=6.0.1", | ||
"rdf-data-factory": ">=1.1.2", | ||
"rdf-literal": ">=1.3.2", | ||
"sparqljs": ">=3.7.1", | ||
"utility-types": ">=3.11.0", | ||
"uuid62": ">=1.0.2" | ||
}, | ||
"dependencies": { | ||
"@types/json-schema": "^7.0.11", | ||
"@types/lodash-es": "^4.17.6", | ||
"@types/sparqljs": "^3.1.3", | ||
"axios": "^0.27.2", | ||
"@types/json-schema": "^7.0.15", | ||
"@types/jsonld": "^1.5.15", | ||
"@types/lodash-es": "^4.17.12", | ||
"@types/sparqljs": "^3.1.11", | ||
"axios": "^1.7.2", | ||
"dayjs": "^1.11.12", | ||
"is-url": "^1.2.4", | ||
"jsonld": "^5.2.0", | ||
"jsonld": "^8.3.2", | ||
"lodash-es": "^4.17.21", | ||
"mobx": "^6.6.0", | ||
"mobx-state-tree": "^5.1.5", | ||
"moment": "^2.29.3", | ||
"rdf-data-factory": "^1.1.0", | ||
"rdf-literal": "^1.3.0", | ||
"sparqljs": "^3.5.2", | ||
"utility-types": "^3.10.0", | ||
"mobx": "^6.13.1", | ||
"mobx-state-tree": "^6.0.1", | ||
"rdf-data-factory": "^1.1.2", | ||
"rdf-literal": "^1.3.2", | ||
"sparqljs": "^3.7.1", | ||
"utility-types": "^3.11.0", | ||
"uuid62": "^1.0.2" | ||
}, | ||
"devDependencies": { | ||
"@babel/core": "^7.18.2", | ||
"@babel/plugin-syntax-flow": "^7.17.12", | ||
"@rollup/plugin-babel": "^5.3.1", | ||
"@rollup/plugin-commonjs": "^22.0.0", | ||
"@rollup/plugin-json": "^4.1.0", | ||
"@rollup/plugin-node-resolve": "^13.3.0", | ||
"@rollup/plugin-typescript": "^8.3.2", | ||
"@types/is-url": "^1.2.30", | ||
"@types/jest": "^27.5.1", | ||
"@types/node": "^17.0.36", | ||
"@typescript-eslint/eslint-plugin": "^5.26.0", | ||
"@typescript-eslint/parser": "^5.26.0", | ||
"babel-loader": "^8.2.5", | ||
"@eslint/js": "^9.8.0", | ||
"@rollup/plugin-json": "6.1.0", | ||
"@rollup/plugin-node-resolve": "15.2.3", | ||
"@rollup/plugin-typescript": "^11.1.6", | ||
"@types/is-url": "^1.2.32", | ||
"@types/jest": "^29.5.12", | ||
"@types/node": "^22.0.0", | ||
"@typescript-eslint/eslint-plugin": "^7.17.0", | ||
"@typescript-eslint/parser": "^7.17.0", | ||
"cross-env": "^7.0.3", | ||
"custom-env": "^2.0.1", | ||
"eslint": "^8.16.0", | ||
"eslint-config-prettier": "^8.5.0", | ||
"custom-env": "^2.0.6", | ||
"esbuild": "^0.23.0", | ||
"eslint": "9.x", | ||
"eslint-config-prettier": "^9.1.0", | ||
"eslint-plugin-flowtype": "^8.0.3", | ||
"eslint-plugin-import": "^2.26.0", | ||
"eslint-plugin-jest": "^26.4.1", | ||
"eslint-plugin-prettier": "^4.0.0", | ||
"husky": "^8.0.1", | ||
"jest": "^28.1.0", | ||
"jest-extended": "^2.0.0", | ||
"jest-watch-typeahead": "^1.1.0", | ||
"lint-staged": "^12.4.2", | ||
"prettier": "^2.6.2", | ||
"rimraf": "^3.0.2", | ||
"rollup": "^2.75.1", | ||
"eslint-plugin-import": "^2.29.1", | ||
"eslint-plugin-jest": "^28.6.0", | ||
"eslint-plugin-prettier": "^5.2.1", | ||
"globals": "^15.8.0", | ||
"husky": "^9.1.3", | ||
"jest": "^29.7.0", | ||
"jest-extended": "^4.0.2", | ||
"jest-watch-typeahead": "^2.2.2", | ||
"lint-staged": "^15.2.7", | ||
"prettier": "3.3.3", | ||
"rimraf": "^6.0.1", | ||
"rollup": "^4.19.1", | ||
"rollup-plugin-dts": "^6.1.1", | ||
"rollup-plugin-esbuild": "^6.1.1", | ||
"rollup-plugin-peer-deps-external": "^2.2.4", | ||
"rollup-plugin-terser": "^7.0.2", | ||
"ts-jest": "^28.0.3", | ||
"tslib": "^2.4.0", | ||
"typescript": "4.7.2" | ||
"ts-jest": "^29.2.3", | ||
"ts-node": "^10.9.2", | ||
"tslib": "^2.6.3", | ||
"typescript": "5.5.4", | ||
"typescript-eslint": "^7.18.0" | ||
}, | ||
"lint-staged": { | ||
"{src,test}/**/*.{js,jsx,ts,tsx,json}": [ | ||
|
@@ -129,4 +131,4 @@ | |
"fs": false, | ||
"path": false | ||
} | ||
} | ||
} |
Oops, something went wrong.