Skip to content

Commit 87a7106

Browse files
committed
Drops Node < v14.18.0 support, use node: namespaced imports
1 parent 89af28b commit 87a7106

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,6 @@
7070
"access": "public"
7171
},
7272
"engines": {
73-
"node": ">=14.14.0"
73+
"node": ">=14.18.0"
7474
}
7575
}

src/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { extname, join } from 'path'
1+
import { extname, join } from 'node:path'
22
import isUtf8 from 'is-utf8'
33
import { getTransformer, handleExtname } from './utils.js'
44

src/utils.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { isAbsolute, sep, dirname, basename, join } from 'path'
1+
import { isAbsolute, sep, dirname, basename, join } from 'node:path'
22
import jstransformer from 'jstransformer'
33

44
/**

test/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import Metalsmith from 'metalsmith'
22
import equal from 'assert-dir-equal'
33
import path from 'path'
4-
import { rejects, strictEqual, ok } from 'assert'
4+
import { rejects, strictEqual, ok } from 'node:assert'
55
import plugin from '../src/index.js'
66
import { handleExtname } from '../src/utils.js'
77

0 commit comments

Comments
 (0)