diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 3b8aa86..1ed55d5 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -10,12 +10,12 @@ jobs: fail-fast: false matrix: node-version: + - 20 + - 18 - 16 - - 14 - - 12 steps: - - uses: actions/checkout@v2 - - uses: actions/setup-node@v2 + - uses: actions/checkout@v3 + - uses: actions/setup-node@v3 with: node-version: ${{ matrix.node-version }} - run: npm install diff --git a/index.d.ts b/index.d.ts index 8e22a07..1b2c42b 100644 --- a/index.d.ts +++ b/index.d.ts @@ -1,4 +1,4 @@ -import {Get} from 'type-fest'; +import {type Get} from 'type-fest'; /** Get the value of the property at the given path. diff --git a/index.test-d.ts b/index.test-d.ts index a73aae6..016c7c0 100644 --- a/index.test-d.ts +++ b/index.test-d.ts @@ -7,7 +7,7 @@ expectTypeOf( getProperty({foo: {bar: 'a'}}, 'foo.notDefined.deep', 'default value'), ).toBeString(); expectTypeOf( - getProperty({foo: {'dot.dot': 'unicorn'}}, 'foo.dot\\.dot'), + getProperty({foo: {'dot.dot': 'unicorn'}}, 'foo.dot\\.dot'), // eslint-disable-line @typescript-eslint/naming-convention // @ts-expect-error type-fest's `Get` not smart enough to deal with escaped dots ).toEqualTypeOf(); diff --git a/package.json b/package.json index 7ce2841..f9b01a9 100644 --- a/package.json +++ b/package.json @@ -13,7 +13,7 @@ "type": "module", "exports": "./index.js", "engines": { - "node": "^12.20.0 || ^14.13.1 || >=16.0.0" + "node": ">=16" }, "scripts": { "test": "xo && ava && tsc", @@ -37,13 +37,13 @@ "dotty" ], "dependencies": { - "type-fest": "^2.11.2" + "type-fest": "^3.8.0" }, "devDependencies": { - "ava": "^4.0.1", + "ava": "^5.2.0", "benchmark": "^2.1.4", - "expect-type": "^0.13.0", - "typescript": "^4.5.5", - "xo": "^0.48.0" + "expect-type": "^0.15.0", + "typescript": "^5.0.4", + "xo": "^0.54.1" } } diff --git a/readme.md b/readme.md index a5d7baf..5ededd9 100644 --- a/readme.md +++ b/readme.md @@ -164,15 +164,3 @@ Value to set at `path`. Type: `unknown` Default value. - ---- - -
- - Get professional support for this package with a Tidelift subscription - -
- - Tidelift helps make open source sustainable for maintainers while giving companies
assurances about security, maintenance, and licensing for their dependencies. -
-
diff --git a/tsconfig.json b/tsconfig.json index 0c9966a..1c6f054 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,7 +1,7 @@ { "compilerOptions": { "lib": [ - "es2020" + "es2021" ], "strict": true, "noEmit": true