From e88b93756cf23bdf4860ca24d76b94442b9c88bb Mon Sep 17 00:00:00 2001 From: AlttiRi <16310547+AlttiRi@users.noreply.github.com> Date: Thu, 25 Jul 2024 19:56:36 +0300 Subject: [PATCH] Update devDeps, refactor tsconfig --- package-lock.json | 28 +++++++++++++-------------- package.json | 31 +++++++++++++++--------------- tsconfig.json | 48 ++++++++++++++++++++++++++--------------------- 3 files changed, 56 insertions(+), 51 deletions(-) diff --git a/package-lock.json b/package-lock.json index d73265f..3edd92c 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,32 +1,32 @@ { "name": "@alttiri/base85", - "version": "1.7.4", + "version": "1.7.5", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@alttiri/base85", - "version": "1.7.4", + "version": "1.7.5", "license": "MIT", "devDependencies": { - "@alttiri/util-node-js": "2.0.16-20240606", + "@alttiri/util-node-js": "2.1.1-20240725", "fflate": "0.8.2", - "typescript": "5.5.1-rc" + "typescript": "5.5.4" } }, "node_modules/@alttiri/util-js": { - "version": "1.10.2-20240603", - "resolved": "https://registry.npmjs.org/@alttiri/util-js/-/util-js-1.10.2-20240603.tgz", - "integrity": "sha512-mUhL2nvcRJajDbjaZVn090PA27BgMq6Qqy9OW6IFOyhiSsPV/BWplG/rOfbiORnr84TTd0FQkJm8Y/7PC1Ot1Q==", + "version": "1.13.1-20240725", + "resolved": "https://registry.npmjs.org/@alttiri/util-js/-/util-js-1.13.1-20240725.tgz", + "integrity": "sha512-DjNs8bhXDPlsfJtPFvcRTixOSnfNIiSuXKsgrWQ1ttSSPT+8hQ6m+b8k3nlFzql7UD0aOMobXr28edkS4ZjZRg==", "dev": true }, "node_modules/@alttiri/util-node-js": { - "version": "2.0.16-20240606", - "resolved": "https://registry.npmjs.org/@alttiri/util-node-js/-/util-node-js-2.0.16-20240606.tgz", - "integrity": "sha512-J9EKkhtxFHBlsUeGB1cRhQi8oqUxGraQiNZ/fs7OnV3Ztb45d6VP0+asKtPN5XcD2ZwqQd0WhK39GGWt2oG1rA==", + "version": "2.1.1-20240725", + "resolved": "https://registry.npmjs.org/@alttiri/util-node-js/-/util-node-js-2.1.1-20240725.tgz", + "integrity": "sha512-Aim3bO+/dPEJMsnSC9spvbdw/4unQ1a1IX96kS1hPlktGaK5zXmlKcjKYnwZJV1w5TFumsa0P2Vn1aJIghS9tg==", "dev": true, "dependencies": { - "@alttiri/util-js": "1.10.2-20240603" + "@alttiri/util-js": "1.13.1-20240725" } }, "node_modules/fflate": { @@ -36,9 +36,9 @@ "dev": true }, "node_modules/typescript": { - "version": "5.5.1-rc", - "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.5.1-rc.tgz", - "integrity": "sha512-7cbqBhh2QH0RaI7AD0ElJ2Ww/iRdW1w2wH/S2dv6EbdNQQlv39fx+V5VOepxLgfUvRkU5D5pxzgPuvHSAQOdpQ==", + "version": "5.5.4", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.5.4.tgz", + "integrity": "sha512-Mtq29sKDAEYP7aljRgtPOpTvOfbwRWlS6dPRzwjdE+C0R4brX/GUyhHSecbHMFLNBLcJIPt9nl9yG5TZ1weH+Q==", "dev": true, "bin": { "tsc": "bin/tsc", diff --git a/package.json b/package.json index 32693ca..6745fd6 100644 --- a/package.json +++ b/package.json @@ -1,18 +1,21 @@ { "name": "@alttiri/base85", - "version": "1.7.4", + "version": "1.7.5", "description": "Pretty fast base85 JavaScript library", - "author": "alttiri", - "license": "MIT", - "type": "module", - "main": "base85.js", - "types": "base85.d.ts", + "homepage": "https://github.com/alttiri/base85", "keywords": [ "base85", "ascii85", "z85" ], - "homepage": "https://github.com/alttiri/base85", + "license": "MIT", + "type": "module", + "main": "base85.js", + "types": "base85.d.ts", + "files": [ + "base85.js", + "base85.d.ts" + ], "repository": { "type": "git", "url": "https://github.com/alttiri/base85.git" @@ -20,18 +23,14 @@ "publishConfig": { "access": "public" }, - "files": [ - "base85.js", - "base85.d.ts" - ], "scripts": { "compile-ts": "tsc --build", "compile-ts-watch": "tsc --build --watch", "clean-ts": "tsc --build --clean", "#": "", - "publish-npm": "npm publish --registry=https://registry.npmjs.org", - "publish-ghp": "npm publish --registry=https://npm.pkg.github.com", - "test-publish": "npm pack", + "test-publish": "tsc --build && npm pack", + "publish-npm": "tsc --build && npm publish --registry=https://registry.npmjs.org", + "publish-ghp": "tsc --build && npm publish --registry=https://npm.pkg.github.com", "##": "", "unpublish-npm": "npm unpublish @alttiri/base85@1.6.0 --registry=https://registry.npmjs.org", "###": "", @@ -39,8 +38,8 @@ "login-ghp": "npm login --registry=https://npm.pkg.github.com" }, "devDependencies": { - "@alttiri/util-node-js": "2.0.16-20240606", + "@alttiri/util-node-js": "2.1.1-20240725", "fflate": "0.8.2", - "typescript": "5.5.1-rc" + "typescript": "5.5.4" } } diff --git a/tsconfig.json b/tsconfig.json index f90b7b3..684dcc8 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,32 +1,38 @@ { "compilerOptions": { - // It very notable slow-downs the object instancing for the "target" is less than "ES2022" if is set to `true`. - "useDefineForClassFields": false, - - "target": "es2020", + "target": "ES2020", "lib": ["ES2021", "DOM", "DOM.Iterable"], - "module": "ESNext", - "moduleResolution": "bundler", - "esModuleInterop": true, - "isolatedModules": true, + + /* Library preset */ + "module": "NodeNext", + "moduleResolution": "NodeNext", + "allowImportingTsExtensions": false, + "noEmit": false, + "declaration": true, + + "useDefineForClassFields": false, "resolveJsonModule": true, + "isolatedModules": true, + "esModuleInterop": true, "skipLibCheck": true, + "allowJs": false, - "strictNullChecks": true, - "strictPropertyInitialization": true, + "strict": true, + "strictNullChecks": true, "strictFunctionTypes": true, "strictBindCallApply": true, - "alwaysStrict": true, - "noImplicitAny": true, - "noImplicitThis": true, - - "allowJs": false, - - "noEmit": false, - "declaration": true, - "sourceMap": false + "strictPropertyInitialization": true, + "noFallthroughCasesInSwitch": true, + "alwaysStrict": true, + "noImplicitAny": true, + "noImplicitThis": true, }, - "files": [ - "base85.ts" + /* Library preset */ + "include": [ + "base85.ts", ] } + +// Note: +// `useDefineForClassFields` very notable slow-downs the object instancing +// for the "target" is less than "ES2022" if is set to `true`.