@thi.ng/resolve-map 7.1.90 → 7.1.92
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 +3 -205
- package/package.json +7 -8
package/CHANGELOG.md
CHANGED
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
# Change Log
|
|
2
2
|
|
|
3
|
-
- **Last updated**: 2025-01-
|
|
3
|
+
- **Last updated**: 2025-01-23T13:39:11Z
|
|
4
4
|
- **Generator**: [thi.ng/monopub](https://thi.ng/monopub)
|
|
5
5
|
|
|
6
6
|
All notable changes to this project will be documented in this file.
|
|
7
|
+
Only versions published since **2022-01-01** are listed here.
|
|
8
|
+
Please consult the Git history for older version information.
|
|
7
9
|
See [Conventional Commits](https://conventionalcommits.org/) for commit guidelines.
|
|
8
10
|
|
|
9
11
|
**Note:** Unlisted _patch_ versions only involve non-code or otherwise excluded changes
|
|
@@ -73,207 +75,3 @@ and/or version bumps of transitive dependencies.
|
|
|
73
75
|
#### ♻️ Refactoring
|
|
74
76
|
|
|
75
77
|
- replace deprecated .substr() w/ .substring() ([0710509](https://github.com/thi-ng/umbrella/commit/0710509))
|
|
76
|
-
|
|
77
|
-
## [5.1.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/resolve-map@5.1.0) (2021-11-17)
|
|
78
|
-
|
|
79
|
-
#### 🚀 Features
|
|
80
|
-
|
|
81
|
-
- Using workspaces for local tools ([bf7a404](https://github.com/thi-ng/umbrella/commit/bf7a404))
|
|
82
|
-
Improving the overall build ergonomics
|
|
83
|
-
- introduced a tools workspaces
|
|
84
|
-
- imported it in all needed packages/examples
|
|
85
|
-
- inclusive project root
|
|
86
|
-
|
|
87
|
-
#### ♻️ Refactoring
|
|
88
|
-
|
|
89
|
-
- testrunner to binary ([4ebbbb2](https://github.com/thi-ng/umbrella/commit/4ebbbb2))
|
|
90
|
-
this commit reverts (partly) changes made in:
|
|
91
|
-
ef346d7a8753590dc9094108a3d861a8dbd5dd2c
|
|
92
|
-
overall purpose is better testament ergonomics:
|
|
93
|
-
instead of having to pass NODE_OPTIONS with every invocation
|
|
94
|
-
having a binary to handle this for us.
|
|
95
|
-
|
|
96
|
-
### [5.0.1](https://github.com/thi-ng/umbrella/tree/@thi.ng/resolve-map@5.0.1) (2021-10-13)
|
|
97
|
-
|
|
98
|
-
#### ♻️ Refactoring
|
|
99
|
-
|
|
100
|
-
- update imports in all tests/pkgs ([effd591](https://github.com/thi-ng/umbrella/commit/effd591))
|
|
101
|
-
|
|
102
|
-
# [5.0.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/resolve-map@5.0.0) (2021-10-12)
|
|
103
|
-
|
|
104
|
-
#### 🛑 Breaking changes
|
|
105
|
-
|
|
106
|
-
- major update of ALL pkgs (export maps, ESM only) ([0d1d6ea](https://github.com/thi-ng/umbrella/commit/0d1d6ea))
|
|
107
|
-
- BREAKING CHANGE: discontinue CommonJS & UMD versions
|
|
108
|
-
- only ESM modules will be published from now on
|
|
109
|
-
- CJS obsolete due to ESM support in recent versions of node:
|
|
110
|
-
- i.e. launch NodeJS via:
|
|
111
|
-
- `node --experimental-specifier-resolution=node --experimental-repl-await`
|
|
112
|
-
- in the node REPL use `await import(...)` instead of `require()`
|
|
113
|
-
- UMD obsolete due to widespread browser support for ESM
|
|
114
|
-
Also:
|
|
115
|
-
- normalize/restructure/reorg all package.json files
|
|
116
|
-
- cleanup all build scripts, remove obsolete
|
|
117
|
-
- switch from mocha to [@thi.ng/testament](https://github.com/thi-ng/umbrella/tree/main/packages/testament) for all tests
|
|
118
|
-
|
|
119
|
-
#### ♻️ Refactoring
|
|
120
|
-
|
|
121
|
-
- update all tests in _all_ pkgs ([8b582bc](https://github.com/thi-ng/umbrella/commit/8b582bc))
|
|
122
|
-
- update all to use [@thi.ng/testament](https://github.com/thi-ng/umbrella/tree/main/packages/testament)
|
|
123
|
-
- update imports ([138571a](https://github.com/thi-ng/umbrella/commit/138571a))
|
|
124
|
-
- update deps & imports in various pkgs ([e1cf29e](https://github.com/thi-ng/umbrella/commit/e1cf29e))
|
|
125
|
-
- largely related to recent updates/restructuring of these packages:
|
|
126
|
-
- api
|
|
127
|
-
- defmulti
|
|
128
|
-
- errors
|
|
129
|
-
- logger
|
|
130
|
-
|
|
131
|
-
### [4.2.9](https://github.com/thi-ng/umbrella/tree/@thi.ng/resolve-map@4.2.9) (2020-12-07)
|
|
132
|
-
|
|
133
|
-
#### ♻️ Refactoring
|
|
134
|
-
|
|
135
|
-
- update type-only imports in various tests/pkgs ([3fd9c24](https://github.com/thi-ng/umbrella/commit/3fd9c24))
|
|
136
|
-
|
|
137
|
-
## [4.2.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/resolve-map@4.2.0) (2020-07-18)
|
|
138
|
-
|
|
139
|
-
#### 🚀 Features
|
|
140
|
-
|
|
141
|
-
- add support for custom lookup prefix ([bf89503](https://github.com/thi-ng/umbrella/commit/bf89503))
|
|
142
|
-
- add tests
|
|
143
|
-
|
|
144
|
-
### [4.1.16](https://github.com/thi-ng/umbrella/tree/@thi.ng/resolve-map@4.1.16) (2020-03-28)
|
|
145
|
-
|
|
146
|
-
#### ♻️ Refactoring
|
|
147
|
-
|
|
148
|
-
- update to new [@thi.ng/paths](https://github.com/thi-ng/umbrella/tree/main/packages/paths) API ([182b36b](https://github.com/thi-ng/umbrella/commit/182b36b))
|
|
149
|
-
|
|
150
|
-
### [4.1.2](https://github.com/thi-ng/umbrella/tree/@thi.ng/resolve-map@4.1.2) (2019-07-08)
|
|
151
|
-
|
|
152
|
-
#### 🩹 Bug fixes
|
|
153
|
-
|
|
154
|
-
- fix [#97](https://github.com/thi-ng/umbrella/issues/97), update to consider trailing comma & whitespace ([de9532b](https://github.com/thi-ng/umbrella/commit/de9532b))
|
|
155
|
-
- add more tests
|
|
156
|
-
|
|
157
|
-
### [4.1.1](https://github.com/thi-ng/umbrella/tree/@thi.ng/resolve-map@4.1.1) (2019-07-08)
|
|
158
|
-
|
|
159
|
-
#### 🩹 Bug fixes
|
|
160
|
-
|
|
161
|
-
- fix [#97](https://github.com/thi-ng/umbrella/issues/97), update fn arg destructuring ([e68dc19](https://github.com/thi-ng/umbrella/commit/e68dc19))
|
|
162
|
-
- update resolveFunction() to allow trailing comma in destructure form, e.g. `{ a, b, }`
|
|
163
|
-
- add test case
|
|
164
|
-
|
|
165
|
-
## [4.1.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/resolve-map@4.1.0) (2019-07-07)
|
|
166
|
-
|
|
167
|
-
#### 🚀 Features
|
|
168
|
-
|
|
169
|
-
- enable TS strict compiler flags (refactor) ([7e7ff2a](https://github.com/thi-ng/umbrella/commit/7e7ff2a))
|
|
170
|
-
|
|
171
|
-
#### ♻️ Refactoring
|
|
172
|
-
|
|
173
|
-
- address TS strictNullChecks flag ([fa7b252](https://github.com/thi-ng/umbrella/commit/fa7b252))
|
|
174
|
-
|
|
175
|
-
# [4.0.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/resolve-map@4.0.0) (2019-01-21)
|
|
176
|
-
|
|
177
|
-
#### 🛑 Breaking changes
|
|
178
|
-
|
|
179
|
-
- update package build scripts & outputs, imports in ~50 packages ([b54b703](https://github.com/thi-ng/umbrella/commit/b54b703))
|
|
180
|
-
- BREAKING CHANGE: enabled multi-outputs (ES6 modules, CJS, UMD)
|
|
181
|
-
- build scripts now first build ES6 modules in package root, then call
|
|
182
|
-
`scripts/bundle-module` to build minified CJS & UMD bundles in `/lib`
|
|
183
|
-
- all imports MUST be updated to only refer to package level
|
|
184
|
-
(not individual files anymore). tree shaking in user land will get rid of
|
|
185
|
-
all unused imported symbols.
|
|
186
|
-
|
|
187
|
-
### [3.0.10](https://github.com/thi-ng/umbrella/tree/@thi.ng/resolve-map@3.0.10) (2018-09-01)
|
|
188
|
-
|
|
189
|
-
#### 🩹 Bug fixes
|
|
190
|
-
|
|
191
|
-
- deep resolve of yet unknown path values ([a710453](https://github.com/thi-ng/umbrella/commit/a710453))
|
|
192
|
-
|
|
193
|
-
### [3.0.8](https://github.com/thi-ng/umbrella/tree/@thi.ng/resolve-map@3.0.8) (2018-08-24)
|
|
194
|
-
|
|
195
|
-
#### ♻️ Refactoring
|
|
196
|
-
|
|
197
|
-
- replace SEMAPHORE const w/ [@thi.ng/api](https://github.com/thi-ng/umbrella/tree/main/packages/api) def ([bea7a1f](https://github.com/thi-ng/umbrella/commit/bea7a1f))
|
|
198
|
-
|
|
199
|
-
### [3.0.5](https://github.com/thi-ng/umbrella/tree/@thi.ng/resolve-map@3.0.5) (2018-07-15)
|
|
200
|
-
|
|
201
|
-
#### 🩹 Bug fixes
|
|
202
|
-
|
|
203
|
-
- add support for alt ES6 destructure form `{a: b}` ([2482945](https://github.com/thi-ng/umbrella/commit/2482945))
|
|
204
|
-
- also fixes issue w/ minimized builds
|
|
205
|
-
|
|
206
|
-
# [3.0.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/resolve-map@3.0.0) (2018-06-07)
|
|
207
|
-
|
|
208
|
-
#### 🛑 Breaking changes
|
|
209
|
-
|
|
210
|
-
- add cycle detection, fix edge cases ([e61c3b5](https://github.com/thi-ng/umbrella/commit/e61c3b5))
|
|
211
|
-
- add `resolve()` as main user function
|
|
212
|
-
- make `resolveMap()` private
|
|
213
|
-
- update _resolve() to keep track of active lookups
|
|
214
|
-
- implement cycle detection
|
|
215
|
-
- add markResolved() helper
|
|
216
|
-
- update resolveFunction() to mark all of its nested
|
|
217
|
-
values as resolved
|
|
218
|
-
- refactor resolvePath()
|
|
219
|
-
- update docs/readme
|
|
220
|
-
- add/update tests
|
|
221
|
-
- BREAKING CHANGE: `resolveMap()` renamed to `resolve()`, update docs
|
|
222
|
-
|
|
223
|
-
#### 🚀 Features
|
|
224
|
-
|
|
225
|
-
- add ES6 destructuring shorthands for function vals ([57f1ed5](https://github.com/thi-ng/umbrella/commit/57f1ed5))
|
|
226
|
-
- add _resolveFunction()
|
|
227
|
-
- add tests
|
|
228
|
-
- update docs & readme
|
|
229
|
-
|
|
230
|
-
### [2.0.6](https://github.com/thi-ng/umbrella/tree/@thi.ng/resolve-map@2.0.6) (2018-06-06)
|
|
231
|
-
|
|
232
|
-
#### 🩹 Bug fixes
|
|
233
|
-
|
|
234
|
-
- add private _resolveDeep ([558f4f8](https://github.com/thi-ng/umbrella/commit/558f4f8))
|
|
235
|
-
- fixes resolution issue if a function dynamically created deep values
|
|
236
|
-
- also use _resolvePath for plain lookups, optimize ([48c796f](https://github.com/thi-ng/umbrella/commit/48c796f))
|
|
237
|
-
- rename _resolveDeep => _resolvePath
|
|
238
|
-
- update docs
|
|
239
|
-
|
|
240
|
-
#### ♻️ Refactoring
|
|
241
|
-
|
|
242
|
-
- export absPath(), add LookupPath type alias ([dc6e0ac](https://github.com/thi-ng/umbrella/commit/dc6e0ac))
|
|
243
|
-
|
|
244
|
-
### [2.0.1](https://github.com/thi-ng/umbrella/tree/@thi.ng/resolve-map@2.0.1) (2018-05-10)
|
|
245
|
-
|
|
246
|
-
#### ♻️ Refactoring
|
|
247
|
-
|
|
248
|
-
- update deps & imports in all packages due to [@thi.ng/api](https://github.com/thi-ng/umbrella/tree/main/packages/api) split ([bc45636](https://github.com/thi-ng/umbrella/commit/bc45636))
|
|
249
|
-
|
|
250
|
-
# [2.0.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/resolve-map@2.0.0) (2018-05-09)
|
|
251
|
-
|
|
252
|
-
#### 🛑 Breaking changes
|
|
253
|
-
|
|
254
|
-
- fix [#21](https://github.com/thi-ng/umbrella/issues/21) ([5d2a3fe](https://github.com/thi-ng/umbrella/commit/5d2a3fe))
|
|
255
|
-
- BREAKING CHANGE: update lookup path prefix & separators
|
|
256
|
-
- lookup paths now are prefixed with `@` instead of `->`
|
|
257
|
-
- all path segments must be separated by `/`
|
|
258
|
-
- update readme & tests
|
|
259
|
-
|
|
260
|
-
# [1.0.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/resolve-map@1.0.0) (2018-04-16)
|
|
261
|
-
|
|
262
|
-
#### 🛑 Breaking changes
|
|
263
|
-
|
|
264
|
-
- support relative parent refs, update tests/readme ([a379d12](https://github.com/thi-ng/umbrella/commit/a379d12))
|
|
265
|
-
- BREAKING CHANGE: lookup paths passed to the provided `resolve()` fn
|
|
266
|
-
inside function values are now relative by default (previously only
|
|
267
|
-
absolute paths were allowed)
|
|
268
|
-
- remove `resolveArray()` from module exports
|
|
269
|
-
(use `resolveMap()` instead)
|
|
270
|
-
- add absPath() to compute absolute path
|
|
271
|
-
- add support for "../" ancestor access
|
|
272
|
-
|
|
273
|
-
## [0.2.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/resolve-map@0.2.0) (2018-04-16)
|
|
274
|
-
|
|
275
|
-
#### 🚀 Features
|
|
276
|
-
|
|
277
|
-
- resolve each ref only once, re-use resolved results ([6992e82](https://github.com/thi-ng/umbrella/commit/6992e82))
|
|
278
|
-
- this also fixes function value resolution,
|
|
279
|
-
e.g. {a: () => ()=> 1, b: "->a" } only unwraps `a` once now
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@thi.ng/resolve-map",
|
|
3
|
-
"version": "7.1.
|
|
3
|
+
"version": "7.1.92",
|
|
4
4
|
"description": "DAG resolution of vanilla objects & arrays with internally linked values",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"module": "./index.js",
|
|
@@ -40,16 +40,15 @@
|
|
|
40
40
|
"tool:tangle": "../../node_modules/.bin/tangle src/**/*.ts"
|
|
41
41
|
},
|
|
42
42
|
"dependencies": {
|
|
43
|
-
"@thi.ng/api": "^8.11.
|
|
44
|
-
"@thi.ng/checks": "^3.6.
|
|
45
|
-
"@thi.ng/errors": "^2.5.
|
|
46
|
-
"@thi.ng/paths": "^5.1.
|
|
43
|
+
"@thi.ng/api": "^8.11.18",
|
|
44
|
+
"@thi.ng/checks": "^3.6.21",
|
|
45
|
+
"@thi.ng/errors": "^2.5.24",
|
|
46
|
+
"@thi.ng/paths": "^5.1.99"
|
|
47
47
|
},
|
|
48
48
|
"devDependencies": {
|
|
49
|
-
"@microsoft/api-extractor": "^7.48.1",
|
|
50
49
|
"esbuild": "^0.24.2",
|
|
51
50
|
"typedoc": "^0.27.6",
|
|
52
|
-
"typescript": "^5.7.
|
|
51
|
+
"typescript": "^5.7.3"
|
|
53
52
|
},
|
|
54
53
|
"keywords": [
|
|
55
54
|
"configuration",
|
|
@@ -80,5 +79,5 @@
|
|
|
80
79
|
],
|
|
81
80
|
"year": 2018
|
|
82
81
|
},
|
|
83
|
-
"gitHead": "
|
|
82
|
+
"gitHead": "b92b48abda9941d608be8a2e1c83447e679a6f79\n"
|
|
84
83
|
}
|