@wix/himalaya-cli 0.810.0 → 0.812.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/dist/cli.mjs +3 -1
- package/guides/cms-collections.md +19 -14
- package/package.json +2 -2
package/dist/cli.mjs
CHANGED
|
@@ -445,7 +445,7 @@ var WIX_COLLECTION_ID_MAX_LENGTH, SAFE_APP_ID, KV_NAME;
|
|
|
445
445
|
var init_ownership = __esm({
|
|
446
446
|
"../../core/data-resources/src/ownership.ts"() {
|
|
447
447
|
init_schema();
|
|
448
|
-
WIX_COLLECTION_ID_MAX_LENGTH =
|
|
448
|
+
WIX_COLLECTION_ID_MAX_LENGTH = 256;
|
|
449
449
|
SAFE_APP_ID = /^[a-z0-9]+(?:-[a-z0-9]+)*(?:\.[a-z0-9]+(?:-[a-z0-9]+)*)?$/;
|
|
450
450
|
KV_NAME = /^[a-z0-9]+(?:-[a-z0-9]+)*$/;
|
|
451
451
|
}
|
|
@@ -11459,6 +11459,7 @@ function shouldRevealError(args) {
|
|
|
11459
11459
|
var EMAIL_RE, URL_HOST_RE, INTEGER_RE, NUMBER_RE;
|
|
11460
11460
|
var init_validation = __esm({
|
|
11461
11461
|
"../../core/ts/src/validation.ts"() {
|
|
11462
|
+
"use strict";
|
|
11462
11463
|
EMAIL_RE = /^[A-Za-z0-9._%+-]+@[A-Za-z0-9-]+(\.[A-Za-z0-9-]+)*\.[A-Za-z]{2,}$/;
|
|
11463
11464
|
URL_HOST_RE = /^[A-Za-z0-9-]+(\.[A-Za-z0-9-]+)*(:[0-9]+)?$/;
|
|
11464
11465
|
INTEGER_RE = /^[+-]?[0-9]+$/;
|
|
@@ -14804,6 +14805,7 @@ function validateWorkerSubtree(raw, slotId, policy, actionCatalog) {
|
|
|
14804
14805
|
var WORKER_SUBTREE_CEILINGS, ID_PART, ACTION_ID;
|
|
14805
14806
|
var init_worker_subtree = __esm({
|
|
14806
14807
|
"../../core/ts/src/worker-subtree.ts"() {
|
|
14808
|
+
"use strict";
|
|
14807
14809
|
init_worker_subtree_safe_types_generated();
|
|
14808
14810
|
WORKER_SUBTREE_CEILINGS = Object.freeze({
|
|
14809
14811
|
maxEncodedBytes: 65536,
|
|
@@ -43,27 +43,32 @@ Two constraints exist because a bare prefix is **not** a namespace, and both are
|
|
|
43
43
|
would genuinely own one namespace and whichever ran `cms create` last would reconcile the
|
|
44
44
|
others' schemas to its own declaration.
|
|
45
45
|
|
|
46
|
-
**The whole id is capped at
|
|
47
|
-
Himalaya rule:
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
its own:
|
|
46
|
+
**The whole id is capped at 256 characters**, and this one is a Wix Data limit rather than a
|
|
47
|
+
Himalaya rule: `DataCollection.id` is published as `maxLength: 256` on
|
|
48
|
+
[Create Data Collection](https://dev.wix.com/docs/api-reference/business-solutions/cms/collection-management/data-collections/create-data-collection),
|
|
49
|
+
which is the call `himi cms create` makes. It applies to `himi_<appSlug>_<name>` in full,
|
|
50
|
+
prefix included. In practice it does not bind — even an app id carrying a timestamp and an
|
|
51
|
+
owner prefix leaves the suffix well over two hundred characters:
|
|
53
52
|
|
|
54
53
|
```
|
|
55
|
-
himi_cadence_20260915_122324_3_ 31 characters
|
|
56
|
-
himi_cadence_20260915_122324_3_entries 38 —
|
|
54
|
+
himi_cadence_20260915_122324_3_ 31 characters
|
|
55
|
+
himi_cadence_20260915_122324_3_entries 38 — accepted, far inside the cap
|
|
57
56
|
```
|
|
58
57
|
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
58
|
+
> **himi enforced 36 characters here until this was corrected.** That number arrived with a
|
|
59
|
+
> starter app and was traceable to no Wix source — it is a UUID's length. So `himi validate`
|
|
60
|
+
> refused ids Wix accepts, and the report that looked like proof of a 36-character limit — the
|
|
61
|
+
> 38-character `..._entries` id above — was himi's own refusal rather than a Wix rejection. If
|
|
62
|
+
> you find an older note budgeting a 36-character id, it is wrong.
|
|
63
|
+
|
|
64
|
+
Renaming an app that already owns collections changes the namespace and means a migration, so
|
|
65
|
+
still pick the app id before you provision — you just no longer have to pick it *short*.
|
|
62
66
|
|
|
63
67
|
`himi validate` is what refuses an over-long id locally, naming the count and the cap. The
|
|
64
68
|
mutating verbs do **not** re-check it — `cms create` and `cms seed` verify only that the id
|
|
65
|
-
carries the app's prefix — so
|
|
66
|
-
|
|
69
|
+
carries the app's prefix — so an id over the cap reaches Wix and is refused there instead of
|
|
70
|
+
locally. At 256 characters you have to work to build one. Note that while himi enforced 36
|
|
71
|
+
this gap could not bite at all: every id it let through was an id Wix accepts.
|
|
67
72
|
|
|
68
73
|
Every role is validated against the supported values too — an unrecognized role used to be
|
|
69
74
|
forwarded to Wix verbatim, and `writeRole: "ANYONE"` would have let anyone on the internet
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wix/himalaya-cli",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.812.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "himi — the Himalaya authoring CLI. Build a Tier-5 content package on your own machine, push it to the production serve as a draft, preview it on web + Himi Player, and read worker logs back — the remote dev loop. Wraps @himalaya/serve-cli for transport.",
|
|
6
6
|
"keywords": [
|
|
@@ -63,5 +63,5 @@
|
|
|
63
63
|
"artifactId": "himalaya-cli"
|
|
64
64
|
}
|
|
65
65
|
},
|
|
66
|
-
"falconPackageHash": "
|
|
66
|
+
"falconPackageHash": "65ec344515508714eab1eee898f49b670f2ad738a0690a7a4dde7ed1"
|
|
67
67
|
}
|