diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 359989d..dbe8299 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -15,8 +15,8 @@ jobs: - ubuntu-latest - macos-latest steps: - - uses: actions/checkout@v3 - - uses: actions/setup-node@v3 + - uses: actions/checkout@v4 + - uses: actions/setup-node@v4 with: node-version: ${{ matrix.node-version }} - run: npm install diff --git a/package.json b/package.json index 38bf9c6..2462bb5 100644 --- a/package.json +++ b/package.json @@ -15,10 +15,10 @@ "types": "./dist/source/index.d.ts", "default": "./dist/source/index.js" }, + "sideEffects": false, "engines": { "node": ">=18" }, - "sideEffects": false, "scripts": { "test": "xo && npm run build && ava", "build": "del-cli dist && tsc", @@ -47,30 +47,30 @@ "cache" ], "dependencies": { - "ajv": "^8.12.0", - "ajv-formats": "^2.1.1", - "atomically": "^2.0.2", - "debounce-fn": "^5.1.2", - "dot-prop": "^8.0.2", + "ajv": "^8.16.0", + "ajv-formats": "^3.0.1", + "atomically": "^2.0.3", + "debounce-fn": "^6.0.0", + "dot-prop": "^9.0.0", "env-paths": "^3.0.0", "json-schema-typed": "^8.0.1", - "semver": "^7.5.4", - "uint8array-extras": "^0.3.0" + "semver": "^7.6.2", + "uint8array-extras": "^1.1.0" }, "devDependencies": { "@sindresorhus/tsconfig": "^5.0.0", - "@types/node": "^20.8.8", - "@types/semver": "^7.5.4", - "ava": "^5.3.1", + "@types/node": "^20.14.2", + "@types/semver": "^7.5.8", + "ava": "^6.1.3", "del": "^7.1.0", "del-cli": "^5.1.0", "delay": "^6.0.0", - "p-event": "^6.0.0", + "p-event": "^6.0.1", "tempy": "^3.1.0", - "ts-node": "^10.9.1", - "tsd": "^0.29.0", - "typescript": "^5.2.2", - "xo": "^0.56.0" + "ts-node": "^10.9.2", + "tsd": "^0.31.0", + "typescript": "^5.4.5", + "xo": "^0.58.0" }, "ava": { "files": [ @@ -83,11 +83,13 @@ }, "nodeArguments": [ "--loader=ts-node/esm" - ] + ], + "workerThreads": false }, "xo": { "rules": { - "@typescript-eslint/ban-ts-comment": "off" + "@typescript-eslint/ban-ts-comment": "off", + "unicorn/prevent-abbreviations": "off" } } } diff --git a/source/index.ts b/source/index.ts index cce876f..33e390f 100644 --- a/source/index.ts +++ b/source/index.ts @@ -5,7 +5,12 @@ import fs from 'node:fs'; import path from 'node:path'; import crypto from 'node:crypto'; import assert from 'node:assert'; -import {getProperty, hasProperty, setProperty, deleteProperty} from 'dot-prop'; +import { + getProperty, + hasProperty, + setProperty, + deleteProperty, +} from 'dot-prop'; import envPaths from 'env-paths'; import {writeFileSync as atomicWriteFileSync} from 'atomically'; import AjvModule, {type ValidateFunction as AjvValidateFunction} from 'ajv';