@rimbu/deep 2.0.3 → 2.0.4
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/README.md +11 -20
- package/package.json +5 -10
package/README.md
CHANGED
|
@@ -8,7 +8,6 @@
|
|
|
8
8
|

|
|
9
9
|

|
|
10
10
|

|
|
11
|
-

|
|
12
11
|

|
|
13
12
|

|
|
14
13
|
|
|
@@ -120,15 +119,15 @@ Try Rimbu (including `@rimbu/deep`) live in the browser using the
|
|
|
120
119
|
|
|
121
120
|
From `@rimbu/deep`’s main entrypoint you have access to:
|
|
122
121
|
|
|
123
|
-
| Name
|
|
124
|
-
|
|
|
125
|
-
| `Patch<T, C = T>`
|
|
126
|
-
| `Match<T, C = Partial<T>>`
|
|
127
|
-
| `Path`
|
|
128
|
-
| `Selector<T>`
|
|
129
|
-
| `Protected<T>`
|
|
130
|
-
| `Tuple<T extends Tuple.Source>` | Tuple wrapper with helper types and functions under the `Tuple` namespace.
|
|
131
|
-
| `Deep`
|
|
122
|
+
| Name | Description |
|
|
123
|
+
| ------------------------------- | ------------------------------------------------------------------------------------------------------ |
|
|
124
|
+
| `Patch<T, C = T>` | Type describing allowed patch shapes for a value of type `T`. |
|
|
125
|
+
| `Match<T, C = Partial<T>>` | Type describing allowed matchers for values of type `T`. |
|
|
126
|
+
| `Path` | Namespace containing `Path.Get<T>`, `Path.Set<T>`, and `Path.Result<T, P>` utilities for string paths. |
|
|
127
|
+
| `Selector<T>` | Type describing allowed selector shapes for values of type `T`. |
|
|
128
|
+
| `Protected<T>` | Deeply readonly/“protected” view of `T` for compile‑time mutation safety. |
|
|
129
|
+
| `Tuple<T extends Tuple.Source>` | Tuple wrapper with helper types and functions under the `Tuple` namespace. |
|
|
130
|
+
| `Deep` | Convenience namespace exposing the main deep utilities (`patch`, `match`, `getAt`, `select`, etc.). |
|
|
132
131
|
|
|
133
132
|
See the [Deep overview docs](https://rimbu.org/docs/deep/overview) and
|
|
134
133
|
[API reference](https://rimbu.org/api/rimbu/deep) for the full surface.
|
|
@@ -296,16 +295,8 @@ npm install @rimbu/deep
|
|
|
296
295
|
yarn add @rimbu/deep
|
|
297
296
|
# or
|
|
298
297
|
bun add @rimbu/deep
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
### Deno (import map)
|
|
302
|
-
|
|
303
|
-
```jsonc
|
|
304
|
-
{
|
|
305
|
-
"imports": {
|
|
306
|
-
"@rimbu/": "https://deno.land/x/rimbu@<version>/"
|
|
307
|
-
}
|
|
308
|
-
}
|
|
298
|
+
# or
|
|
299
|
+
deno add npm:@rimbu/deep
|
|
309
300
|
```
|
|
310
301
|
|
|
311
302
|
Then:
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rimbu/deep",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.4",
|
|
4
4
|
"description": "Tools to use handle plain JS objects as immutable objects",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"immutable",
|
|
@@ -53,17 +53,12 @@
|
|
|
53
53
|
],
|
|
54
54
|
"scripts": {
|
|
55
55
|
"build": "yarn clean && yarn bundle",
|
|
56
|
-
"build:deno": "yarn bundle:deno-prepare && yarn bundle:deno-convert && yarn bundle:deno-move && yarn bundle:deno-clean",
|
|
57
56
|
"bundle": "yarn bundle:cjs && yarn bundle:esm && yarn bundle:bun",
|
|
58
57
|
"bundle:bun": "node ../../config/bunnify.mjs -mode bun",
|
|
59
58
|
"bundle:cjs": "yarn bundle:cjs-prepare && yarn bundle:cjs-build && yarn bundle:cjs-clean",
|
|
60
59
|
"bundle:cjs-prepare": "node ../../config/bunnify.mjs -mode cjs",
|
|
61
60
|
"bundle:cjs-build": "tsc -p tsconfig.cjs.json",
|
|
62
61
|
"bundle:cjs-clean": "rimraf _cjs_prepare",
|
|
63
|
-
"bundle:deno-prepare": "node ../../config/prepare-denoify.mjs",
|
|
64
|
-
"bundle:deno-convert": "denoify --src _deno_prepare/src",
|
|
65
|
-
"bundle:deno-move": "rimraf ../../deno_dist/deep && mv deno_dist ../../deno_dist/deep",
|
|
66
|
-
"bundle:deno-clean": "rimraf _deno_prepare",
|
|
67
62
|
"bundle:esm": "tsc --p tsconfig.esm.json",
|
|
68
63
|
"clean": "rimraf dist",
|
|
69
64
|
"extract-api": "tsx ../../config/api-extractor.ts config/api-extractor.main.json",
|
|
@@ -78,12 +73,12 @@
|
|
|
78
73
|
"typecheck": "tsc"
|
|
79
74
|
},
|
|
80
75
|
"dependencies": {
|
|
81
|
-
"@rimbu/base": "^2.0.
|
|
82
|
-
"@rimbu/common": "^2.0.
|
|
83
|
-
"tslib": "^2.
|
|
76
|
+
"@rimbu/base": "^2.0.4",
|
|
77
|
+
"@rimbu/common": "^2.0.4",
|
|
78
|
+
"tslib": "^2.8.1"
|
|
84
79
|
},
|
|
85
80
|
"publishConfig": {
|
|
86
81
|
"access": "public"
|
|
87
82
|
},
|
|
88
|
-
"gitHead": "
|
|
83
|
+
"gitHead": "bc6bc82af86461c423ba459d6d9809efdd5ffd61"
|
|
89
84
|
}
|