@atscript/core 0.2.12 → 0.2.14
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/index.cjs +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -10879,7 +10879,7 @@ const expectAnnotations = {
|
|
|
10879
10879
|
}
|
|
10880
10880
|
}),
|
|
10881
10881
|
key: new AnnotationSpec({
|
|
10882
|
-
description: "Marks a **key field** inside an array of objects. Key fields *identify* elements for lookup and patch operations (`$upsert`, `$update`, `$remove`).\n\n`@expect.array.key` does **not** enforce uniqueness by itself — it only declares which fields form the element identity. To enforce that no two elements share the same key, also add `@expect.array.uniqueItems` on the array field.\n\nMultiple key fields form a **composite key** (all must match for elements to be considered equal).\n\n**Example:**\n```atscript\n@expect.array.uniqueItems // enforce uniqueness by key\nprofiles: {\n @expect.array.key\n profileId: string\n name: string\n}[]\n```\n",
|
|
10882
|
+
description: "Marks a **key field** inside an array of objects. Key fields *identify* elements for lookup and patch operations (`$upsert`, `$update`, `$remove`; `$insert` skips an item whose key is already stored).\n\n`@expect.array.key` does **not** enforce uniqueness by itself — it only declares which fields form the element identity. To enforce that no two elements share the same key, also add `@expect.array.uniqueItems` on the array field.\n\nMultiple key fields form a **composite key** (all must match for elements to be considered equal).\n\n**Example:**\n```atscript\n@expect.array.uniqueItems // enforce uniqueness by key\nprofiles: {\n @expect.array.key\n profileId: string\n name: string\n}[]\n```\n",
|
|
10883
10883
|
nodeType: ["prop", "type"],
|
|
10884
10884
|
multiple: false,
|
|
10885
10885
|
argument: [{
|
package/dist/index.mjs
CHANGED
|
@@ -10848,7 +10848,7 @@ const expectAnnotations = {
|
|
|
10848
10848
|
}
|
|
10849
10849
|
}),
|
|
10850
10850
|
key: new AnnotationSpec({
|
|
10851
|
-
description: "Marks a **key field** inside an array of objects. Key fields *identify* elements for lookup and patch operations (`$upsert`, `$update`, `$remove`).\n\n`@expect.array.key` does **not** enforce uniqueness by itself — it only declares which fields form the element identity. To enforce that no two elements share the same key, also add `@expect.array.uniqueItems` on the array field.\n\nMultiple key fields form a **composite key** (all must match for elements to be considered equal).\n\n**Example:**\n```atscript\n@expect.array.uniqueItems // enforce uniqueness by key\nprofiles: {\n @expect.array.key\n profileId: string\n name: string\n}[]\n```\n",
|
|
10851
|
+
description: "Marks a **key field** inside an array of objects. Key fields *identify* elements for lookup and patch operations (`$upsert`, `$update`, `$remove`; `$insert` skips an item whose key is already stored).\n\n`@expect.array.key` does **not** enforce uniqueness by itself — it only declares which fields form the element identity. To enforce that no two elements share the same key, also add `@expect.array.uniqueItems` on the array field.\n\nMultiple key fields form a **composite key** (all must match for elements to be considered equal).\n\n**Example:**\n```atscript\n@expect.array.uniqueItems // enforce uniqueness by key\nprofiles: {\n @expect.array.key\n profileId: string\n name: string\n}[]\n```\n",
|
|
10852
10852
|
nodeType: ["prop", "type"],
|
|
10853
10853
|
multiple: false,
|
|
10854
10854
|
argument: [{
|