@foray1010/common-presets-utils 5.0.4 → 6.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -3,6 +3,26 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [6.0.0](https://github.com/foray1010/common-presets/compare/@foray1010/common-presets-utils@5.1.0...@foray1010/common-presets-utils@6.0.0) (2022-11-07)
7
+
8
+ ### ⚠ BREAKING CHANGES
9
+
10
+ - drop nodejs 14.17 and 18.11
11
+
12
+ ### Features
13
+
14
+ - **eslint-config:** prefer node protocol ([204e5c1](https://github.com/foray1010/common-presets/commit/204e5c168aacaa020d2481306489724dfd6da7bc))
15
+
16
+ ### Miscellaneous Chores
17
+
18
+ - drop nodejs 14.17 and 18.11 ([8e5c967](https://github.com/foray1010/common-presets/commit/8e5c9677b89d38c88de465f069bb5de683a8a40b))
19
+
20
+ ## [5.1.0](https://github.com/foray1010/common-presets/compare/@foray1010/common-presets-utils@5.0.4...@foray1010/common-presets-utils@5.1.0) (2022-10-07)
21
+
22
+ ### Features
23
+
24
+ - use indexed syntax for accessing undefined fields ([7c1f9d6](https://github.com/foray1010/common-presets/commit/7c1f9d63349f0b34b00aa8608d6908763d964c3e))
25
+
6
26
  ## [5.0.4](https://github.com/foray1010/common-presets/compare/@foray1010/common-presets-utils@5.0.3...@foray1010/common-presets-utils@5.0.4) (2022-09-28)
7
27
 
8
28
  **Note:** Version bump only for package @foray1010/common-presets-utils
@@ -1,6 +1,6 @@
1
1
  'use strict'
2
2
 
3
- const path = require('path')
3
+ const path = require('node:path')
4
4
  const readPkgUp = require('read-pkg-up')
5
5
 
6
6
  const { packageJson: pkg, path: pkgPath } = readPkgUp.sync() ?? {}
@@ -18,7 +18,7 @@ const hasDep = (packageName) =>
18
18
  .flatMap((dependencies) => Object.keys(dependencies ?? {}))
19
19
  .includes(packageName)
20
20
 
21
- const isESM = () => pkg?.type === 'module'
21
+ const isESM = () => pkg?.['type'] === 'module'
22
22
 
23
23
  module.exports = {
24
24
  hasDep,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/package",
3
3
  "name": "@foray1010/common-presets-utils",
4
- "version": "5.0.4",
4
+ "version": "6.0.0",
5
5
  "homepage": "https://github.com/foray1010/common-presets/tree/master/packages/common-presets-utils#readme",
6
6
  "bugs": "https://github.com/foray1010/common-presets/issues",
7
7
  "repository": {
@@ -10,7 +10,7 @@
10
10
  "directory": "packages/common-presets-utils"
11
11
  },
12
12
  "license": "MIT",
13
- "exports": "./index.js",
13
+ "exports": "./index.cjs",
14
14
  "files": [
15
15
  "**/*.{cjs,js,json,mjs}",
16
16
  "*.md"
@@ -22,10 +22,10 @@
22
22
  "read-pkg-up": "^7.0.1"
23
23
  },
24
24
  "engines": {
25
- "node": "^14.17.0 || ^16.13.0 || >=18.0.0"
25
+ "node": "^14.18.0 || ^16.13.0 || >=18.12.0"
26
26
  },
27
27
  "publishConfig": {
28
28
  "access": "public"
29
29
  },
30
- "gitHead": "32f909d569229f0358d66f7c8295a1d15e5c3de3"
30
+ "gitHead": "4acba77dace91746ac98872f4b8f62b410de82f5"
31
31
  }