Skip to content

Commit a8b3bbd

Browse files
committedApr 22, 2023
Require Node.js 16
1 parent 49e9082 commit a8b3bbd

File tree

6 files changed

+13
-25
lines changed

6 files changed

+13
-25
lines changed
 

‎.github/workflows/main.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,12 @@ jobs:
1010
fail-fast: false
1111
matrix:
1212
node-version:
13+
- 20
14+
- 18
1315
- 16
14-
- 14
15-
- 12
1616
steps:
17-
- uses: actions/checkout@v2
18-
- uses: actions/setup-node@v2
17+
- uses: actions/checkout@v3
18+
- uses: actions/setup-node@v3
1919
with:
2020
node-version: ${{ matrix.node-version }}
2121
- run: npm install

‎index.d.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import {Get} from 'type-fest';
1+
import {type Get} from 'type-fest';
22

33
/**
44
Get the value of the property at the given path.

‎index.test-d.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ expectTypeOf(
77
getProperty({foo: {bar: 'a'}}, 'foo.notDefined.deep', 'default value'),
88
).toBeString();
99
expectTypeOf(
10-
getProperty({foo: {'dot.dot': 'unicorn'}}, 'foo.dot\\.dot'),
10+
getProperty({foo: {'dot.dot': 'unicorn'}}, 'foo.dot\\.dot'), // eslint-disable-line @typescript-eslint/naming-convention
1111
// @ts-expect-error type-fest's `Get` not smart enough to deal with escaped dots
1212
).toEqualTypeOf<string>();
1313

‎package.json

+6-6
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"type": "module",
1414
"exports": "./index.js",
1515
"engines": {
16-
"node": "^12.20.0 || ^14.13.1 || >=16.0.0"
16+
"node": ">=16"
1717
},
1818
"scripts": {
1919
"test": "xo && ava && tsc",
@@ -37,13 +37,13 @@
3737
"dotty"
3838
],
3939
"dependencies": {
40-
"type-fest": "^2.11.2"
40+
"type-fest": "^3.8.0"
4141
},
4242
"devDependencies": {
43-
"ava": "^4.0.1",
43+
"ava": "^5.2.0",
4444
"benchmark": "^2.1.4",
45-
"expect-type": "^0.13.0",
46-
"typescript": "^4.5.5",
47-
"xo": "^0.48.0"
45+
"expect-type": "^0.15.0",
46+
"typescript": "^5.0.4",
47+
"xo": "^0.54.1"
4848
}
4949
}

‎readme.md

-12
Original file line numberDiff line numberDiff line change
@@ -164,15 +164,3 @@ Value to set at `path`.
164164
Type: `unknown`
165165

166166
Default value.
167-
168-
---
169-
170-
<div align="center">
171-
<b>
172-
<a href="https://tidelift.com/subscription/pkg/npm-dot-prop?utm_source=npm-dot-prop&utm_medium=referral&utm_campaign=readme">Get professional support for this package with a Tidelift subscription</a>
173-
</b>
174-
<br>
175-
<sub>
176-
Tidelift helps make open source sustainable for maintainers while giving companies<br>assurances about security, maintenance, and licensing for their dependencies.
177-
</sub>
178-
</div>

‎tsconfig.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"compilerOptions": {
33
"lib": [
4-
"es2020"
4+
"es2021"
55
],
66
"strict": true,
77
"noEmit": true

0 commit comments

Comments
 (0)
Please sign in to comment.