@guanghechen/config 1.0.0-alpha.1 → 1.0.0-alpha.11

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,106 @@
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
+ # [1.0.0-alpha.11](https://github.com/guanghechen/sora/compare/@guanghechen/config@1.0.0-alpha.10...@guanghechen/config@1.0.0-alpha.11) (2024-01-02)
7
+
8
+ **Note:** Version bump only for package @guanghechen/config
9
+
10
+
11
+
12
+
13
+
14
+ # [1.0.0-alpha.10](https://github.com/guanghechen/sora/compare/@guanghechen/config@1.0.0-alpha.9...@guanghechen/config@1.0.0-alpha.10) (2023-12-08)
15
+
16
+
17
+ ### Performance Improvements
18
+
19
+ * 🔧 update description ([83ce262](https://github.com/guanghechen/sora/commit/83ce26221ae681837c03eec4259c5b9bd07faffb))
20
+
21
+
22
+
23
+
24
+
25
+ # [1.0.0-alpha.9](https://github.com/guanghechen/sora/compare/@guanghechen/config@1.0.0-alpha.8...@guanghechen/config@1.0.0-alpha.9) (2023-12-04)
26
+
27
+
28
+ ### Performance Improvements
29
+
30
+ * 🔧 fix circular dependencies ([fc2a82d](https://github.com/guanghechen/sora/commit/fc2a82d6e5376c722f347f6765cc8df7ff6fd31f))
31
+ * 💄 fix lint ([ad8c6ed](https://github.com/guanghechen/sora/commit/ad8c6edbcb04a5db1740bfeb64ef2173abf06311))
32
+
33
+
34
+
35
+
36
+
37
+ # [1.0.0-alpha.8](https://github.com/guanghechen/sora/compare/@guanghechen/config@1.0.0-alpha.7...@guanghechen/config@1.0.0-alpha.8) (2023-12-03)
38
+
39
+
40
+ ### Performance Improvements
41
+
42
+ * 🔧 fix lint ([4bc57d2](https://github.com/guanghechen/sora/commit/4bc57d2deabf2a4f144c7af46d45582387825ecb))
43
+
44
+
45
+
46
+
47
+
48
+ # [1.0.0-alpha.7](https://github.com/guanghechen/sora/compare/@guanghechen/config@1.0.0-alpha.6...@guanghechen/config@1.0.0-alpha.7) (2023-12-02)
49
+
50
+ **Note:** Version bump only for package @guanghechen/config
51
+
52
+
53
+
54
+
55
+
56
+ # [1.0.0-alpha.6](https://github.com/guanghechen/sora/compare/@guanghechen/config@1.0.0-alpha.5...@guanghechen/config@1.0.0-alpha.6) (2023-11-29)
57
+
58
+
59
+ ### Performance Improvements
60
+
61
+ * 🔧 no longer to require node engine version in packages ([6dc2014](https://github.com/guanghechen/sora/commit/6dc2014122dd44bcadc893e2ee98697265e7d61e))
62
+
63
+
64
+
65
+
66
+
67
+ # [1.0.0-alpha.5](https://github.com/guanghechen/sora/compare/@guanghechen/config@1.0.0-alpha.4...@guanghechen/config@1.0.0-alpha.5) (2023-11-25)
68
+
69
+
70
+ ### Performance Improvements
71
+
72
+ * ⬆️ upgrade devDependencies ([85c97b7](https://github.com/guanghechen/sora/commit/85c97b734e30a44a5016f117862ec0ba1084a054))
73
+
74
+
75
+
76
+
77
+
78
+ # [1.0.0-alpha.4](https://github.com/guanghechen/sora/compare/@guanghechen/config@1.0.0-alpha.3...@guanghechen/config@1.0.0-alpha.4) (2023-11-18)
79
+
80
+ **Note:** Version bump only for package @guanghechen/config
81
+
82
+
83
+
84
+
85
+
86
+ # [1.0.0-alpha.3](https://github.com/guanghechen/sora/compare/@guanghechen/config@1.0.0-alpha.2...@guanghechen/config@1.0.0-alpha.3) (2023-11-18)
87
+
88
+ **Note:** Version bump only for package @guanghechen/config
89
+
90
+
91
+
92
+
93
+
94
+ # [1.0.0-alpha.2](https://github.com/guanghechen/sora/compare/@guanghechen/config@1.0.0-alpha.1...@guanghechen/config@1.0.0-alpha.2) (2023-11-18)
95
+
96
+
97
+ ### Performance Improvements
98
+
99
+ * chore: upgrade dependencies ([46cb847](https://github.com/guanghechen/sora/commit/46cb8470de325045eaa1737b096aa2cc100bd430))
100
+ * 🔧 upgrade engine version requirement from '>= 16.0.0' to '>= 18.0.0' ([ddb9521](https://github.com/guanghechen/sora/commit/ddb9521b529b2ca838554794339b9e27ac80b8aa))
101
+
102
+
103
+
104
+
105
+
6
106
  # 1.0.0-alpha.1 (2023-11-07)
7
107
 
8
108
 
package/lib/cjs/index.cjs CHANGED
@@ -1,16 +1,13 @@
1
1
  'use strict';
2
2
 
3
3
  var byte = require('@guanghechen/byte');
4
- require('node:fs');
5
- require('node:fs/promises');
6
- require('node:path');
7
4
  var mac = require('@guanghechen/mac');
8
- var semver = require('semver');
5
+ var satisfies = require('semver/functions/satisfies');
9
6
  var config_types = require('@guanghechen/config.types');
10
7
 
11
8
  function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
12
9
 
13
- var semver__default = /*#__PURE__*/_interopDefault(semver);
10
+ var satisfies__default = /*#__PURE__*/_interopDefault(satisfies);
14
11
 
15
12
  const isProduction = process.env.NODE_ENV === 'production';
16
13
  const prefix = 'Invariant failed';
@@ -42,7 +39,7 @@ class BaseConfigKeeper {
42
39
  return this._instance;
43
40
  }
44
41
  compatible(version) {
45
- return semver__default.default.satisfies(version, this.__compatible_version__, {
42
+ return satisfies__default.default(version, this.__compatible_version__, {
46
43
  loose: false,
47
44
  includePrerelease: true,
48
45
  });
package/lib/esm/index.mjs CHANGED
@@ -1,9 +1,6 @@
1
1
  import { bytes2text, randomBytes, text2bytes } from '@guanghechen/byte';
2
- import 'node:fs';
3
- import 'node:fs/promises';
4
- import 'node:path';
5
2
  import { calcMac } from '@guanghechen/mac';
6
- import semver from 'semver';
3
+ import satisfies from 'semver/functions/satisfies.js';
7
4
  export * from '@guanghechen/config.types';
8
5
 
9
6
  const isProduction = process.env.NODE_ENV === 'production';
@@ -36,7 +33,7 @@ class BaseConfigKeeper {
36
33
  return this._instance;
37
34
  }
38
35
  compatible(version) {
39
- return semver.satisfies(version, this.__compatible_version__, {
36
+ return satisfies(version, this.__compatible_version__, {
40
37
  loose: false,
41
38
  includePrerelease: true,
42
39
  });
package/package.json CHANGED
@@ -1,16 +1,17 @@
1
1
  {
2
2
  "name": "@guanghechen/config",
3
- "version": "1.0.0-alpha.1",
3
+ "version": "1.0.0-alpha.11",
4
4
  "author": {
5
5
  "name": "guanghechen",
6
6
  "url": "https://github.com/guanghechen/"
7
7
  },
8
+ "description": "Utilities for defining config followed by semantic version.",
8
9
  "repository": {
9
10
  "type": "git",
10
- "url": "https://github.com/guanghechen/sora/tree/@guanghechen/config@1.0.0-alpha.0",
11
+ "url": "https://github.com/guanghechen/sora/tree/@guanghechen/config@1.0.0-alpha.10",
11
12
  "directory": "packages/config"
12
13
  },
13
- "homepage": "https://github.com/guanghechen/sora/tree/@guanghechen/config@1.0.0-alpha.0/packages/config#readme",
14
+ "homepage": "https://github.com/guanghechen/sora/tree/@guanghechen/config@1.0.0-alpha.10/packages/config#readme",
14
15
  "type": "module",
15
16
  "exports": {
16
17
  ".": {
@@ -25,9 +26,6 @@
25
26
  "module": "./lib/esm/index.mjs",
26
27
  "types": "./lib/types/index.d.ts",
27
28
  "license": "MIT",
28
- "engines": {
29
- "node": ">= 16.0.0"
30
- },
31
29
  "files": [
32
30
  "lib/",
33
31
  "!lib/**/*.map",
@@ -42,15 +40,14 @@
42
40
  "test": "node --experimental-vm-modules ../../node_modules/.bin/jest --config ../../jest.config.mjs --rootDir ."
43
41
  },
44
42
  "dependencies": {
45
- "@guanghechen/byte": "^1.0.0-alpha.2",
46
- "@guanghechen/config.types": "^1.0.0-alpha.1",
47
- "@guanghechen/mac": "^1.0.0-alpha.1",
48
- "@guanghechen/resource.types": "^1.0.0-alpha.1",
43
+ "@guanghechen/byte": "^1.0.0-alpha.5",
44
+ "@guanghechen/config.types": "^1.0.0-alpha.4",
45
+ "@guanghechen/mac": "^1.0.0-alpha.4",
46
+ "@guanghechen/resource.types": "^1.0.0-alpha.4",
49
47
  "semver": "^7.5.4"
50
48
  },
51
49
  "devDependencies": {
52
- "@guanghechen/internal": "^1.0.0-alpha.0",
53
- "@types/semver": "^7.5.4"
50
+ "@guanghechen/internal": "^1.0.0-alpha.0"
54
51
  },
55
- "gitHead": "44cbe1dd8ebc1a7c48d9e39564717b337d3b25af"
52
+ "gitHead": "0632489b361b9fa783de73b3b31eec8f10227e89"
56
53
  }