@warlock.js/cascade 5.17.1 → 5.19.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/CHANGELOG.md +6 -0
- package/llms-full.txt +16 -16
- package/llms.txt +16 -16
- package/package.json +4 -4
- package/skills/aggregate-data/SKILL.md +1 -1
- package/skills/alter-migration/SKILL.md +1 -1
- package/skills/cascade-basics/SKILL.md +1 -1
- package/skills/configure-delete-strategy/SKILL.md +1 -1
- package/skills/define-model/SKILL.md +1 -1
- package/skills/define-relations/SKILL.md +1 -1
- package/skills/manage-data-sources/SKILL.md +1 -1
- package/skills/manage-transactions/SKILL.md +1 -1
- package/skills/paginate-results/SKILL.md +1 -1
- package/skills/perform-atomic-ops/SKILL.md +1 -1
- package/skills/query-data/SKILL.md +1 -1
- package/skills/run-cascade-cli/SKILL.md +1 -1
- package/skills/search-by-vector/SKILL.md +1 -1
- package/skills/subscribe-to-model-events/SKILL.md +1 -1
- package/skills/track-changes/SKILL.md +1 -1
- package/skills/write-migration/SKILL.md +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,12 @@ All notable changes to `@warlock.js/cascade` are documented in this file.
|
|
|
4
4
|
|
|
5
5
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/). `@warlock.js/*` packages are released in lockstep — every package shares the same version number, so a version below may list only the changes that affected this package.
|
|
6
6
|
|
|
7
|
+
## 5.19.0 - 2026-09-23
|
|
8
|
+
|
|
9
|
+
### Changed
|
|
10
|
+
|
|
11
|
+
- Refined package skill-discovery descriptions and regenerated the llms projections.
|
|
12
|
+
|
|
7
13
|
## 5.17.0 - 2026-09-21
|
|
8
14
|
|
|
9
15
|
### Fixed
|
package/llms-full.txt
CHANGED
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
|
|
9
9
|
---
|
|
10
10
|
name: aggregate-data
|
|
11
|
-
description:
|
|
11
|
+
description: "Use aggregates and groupBy in @warlock.js/cascade; use when you need to aggregate data."
|
|
12
12
|
---
|
|
13
13
|
|
|
14
14
|
# Use aggregates and groupBy
|
|
@@ -177,7 +177,7 @@ Raw stages: `joinRaw({ $lookup: { from, let, pipeline, as } })` (or an array of
|
|
|
177
177
|
|
|
178
178
|
---
|
|
179
179
|
name: alter-migration
|
|
180
|
-
description:
|
|
180
|
+
description: "Alter a migration in @warlock.js/cascade; use when you need to alter migration."
|
|
181
181
|
---
|
|
182
182
|
|
|
183
183
|
# Alter a migration
|
|
@@ -712,7 +712,7 @@ export default Migration.alter(Product, {
|
|
|
712
712
|
|
|
713
713
|
---
|
|
714
714
|
name: cascade-basics
|
|
715
|
-
description:
|
|
715
|
+
description: "Start here for @warlock.js/cascade models, data sources, migrations, and query workflows."
|
|
716
716
|
---
|
|
717
717
|
|
|
718
718
|
# Cascade basics
|
|
@@ -813,7 +813,7 @@ const page = await User.paginate({ page: 1, limit: 20 });
|
|
|
813
813
|
|
|
814
814
|
---
|
|
815
815
|
name: configure-delete-strategy
|
|
816
|
-
description:
|
|
816
|
+
description: "Use delete strategies in @warlock.js/cascade; use when you need to configure delete strategy."
|
|
817
817
|
---
|
|
818
818
|
|
|
819
819
|
# Use delete strategies
|
|
@@ -947,7 +947,7 @@ See [`@warlock.js/cascade/subscribe-to-model-events/SKILL.md`](@warlock.js/casca
|
|
|
947
947
|
|
|
948
948
|
---
|
|
949
949
|
name: define-model
|
|
950
|
-
description:
|
|
950
|
+
description: "Define a model in @warlock.js/cascade; use when you need to define model."
|
|
951
951
|
---
|
|
952
952
|
|
|
953
953
|
# Define a model
|
|
@@ -1156,7 +1156,7 @@ export class User extends Model<UserSchema> {
|
|
|
1156
1156
|
|
|
1157
1157
|
---
|
|
1158
1158
|
name: define-relations
|
|
1159
|
-
description:
|
|
1159
|
+
description: "Define and query relations in @warlock.js/cascade; use when you need to define relations."
|
|
1160
1160
|
---
|
|
1161
1161
|
|
|
1162
1162
|
# Define and query relations
|
|
@@ -1331,7 +1331,7 @@ For embedded/denormalized relations (cached `author_name` on posts, etc.), Casca
|
|
|
1331
1331
|
|
|
1332
1332
|
---
|
|
1333
1333
|
name: manage-data-sources
|
|
1334
|
-
description:
|
|
1334
|
+
description: "Manage data sources in @warlock.js/cascade; use when you need to manage data sources."
|
|
1335
1335
|
---
|
|
1336
1336
|
|
|
1337
1337
|
# Manage data sources
|
|
@@ -1475,7 +1475,7 @@ There is no `has(name)` / `list()` / `setDefault()` — guard with a `try/catch`
|
|
|
1475
1475
|
|
|
1476
1476
|
---
|
|
1477
1477
|
name: manage-transactions
|
|
1478
|
-
description:
|
|
1478
|
+
description: "Use transactions in @warlock.js/cascade; use when you need to manage transactions."
|
|
1479
1479
|
---
|
|
1480
1480
|
|
|
1481
1481
|
# Use transactions
|
|
@@ -1670,7 +1670,7 @@ For "side effects must only happen if the transaction succeeded" (publish to a q
|
|
|
1670
1670
|
|
|
1671
1671
|
---
|
|
1672
1672
|
name: paginate-results
|
|
1673
|
-
description:
|
|
1673
|
+
description: "Paginate results in @warlock.js/cascade; use when you need to paginate results."
|
|
1674
1674
|
---
|
|
1675
1675
|
|
|
1676
1676
|
# Paginate results
|
|
@@ -1796,7 +1796,7 @@ The total count requires an extra query. On very large filtered tables, this can
|
|
|
1796
1796
|
|
|
1797
1797
|
---
|
|
1798
1798
|
name: perform-atomic-ops
|
|
1799
|
-
description:
|
|
1799
|
+
description: "Use atomic operations in @warlock.js/cascade; use when you need to perform atomic ops."
|
|
1800
1800
|
---
|
|
1801
1801
|
|
|
1802
1802
|
# Use atomic operations
|
|
@@ -1956,7 +1956,7 @@ for (const user of targets) {
|
|
|
1956
1956
|
|
|
1957
1957
|
---
|
|
1958
1958
|
name: query-data
|
|
1959
|
-
description:
|
|
1959
|
+
description: "Query data in @warlock.js/cascade; use when you need to query data."
|
|
1960
1960
|
---
|
|
1961
1961
|
|
|
1962
1962
|
# Query data
|
|
@@ -2173,7 +2173,7 @@ const activeUsers = await User.query().scope("active").get();
|
|
|
2173
2173
|
|
|
2174
2174
|
---
|
|
2175
2175
|
name: run-cascade-cli
|
|
2176
|
-
description:
|
|
2176
|
+
description: "Run the cascade CLI / Operations API in @warlock.js/cascade; use when you need to run cascade cli."
|
|
2177
2177
|
---
|
|
2178
2178
|
|
|
2179
2179
|
# Run the cascade CLI / Operations API
|
|
@@ -2302,7 +2302,7 @@ Reach for these when you need migrations inside test setup (`beforeAll(async ()
|
|
|
2302
2302
|
|
|
2303
2303
|
---
|
|
2304
2304
|
name: search-by-vector
|
|
2305
|
-
description:
|
|
2305
|
+
description: "Use vector search in @warlock.js/cascade; use when you need to search by vector."
|
|
2306
2306
|
---
|
|
2307
2307
|
|
|
2308
2308
|
# Use vector search
|
|
@@ -2433,7 +2433,7 @@ For local dev with MongoDB, develop the vector path against Postgres + pgvector.
|
|
|
2433
2433
|
|
|
2434
2434
|
---
|
|
2435
2435
|
name: subscribe-to-model-events
|
|
2436
|
-
description:
|
|
2436
|
+
description: "Use model events in @warlock.js/cascade; use when you need to subscribe to model events."
|
|
2437
2437
|
---
|
|
2438
2438
|
|
|
2439
2439
|
# Use model events
|
|
@@ -2585,7 +2585,7 @@ For external side effects (queues, emails) that must only fire if a surrounding
|
|
|
2585
2585
|
|
|
2586
2586
|
---
|
|
2587
2587
|
name: track-changes
|
|
2588
|
-
description:
|
|
2588
|
+
description: "Track changes in @warlock.js/cascade; use when you need to track changes."
|
|
2589
2589
|
---
|
|
2590
2590
|
|
|
2591
2591
|
# Track changes
|
|
@@ -2716,7 +2716,7 @@ Before 4.9.1 a `Date` merged over a column that **already held a `Date`** was si
|
|
|
2716
2716
|
|
|
2717
2717
|
---
|
|
2718
2718
|
name: write-migration
|
|
2719
|
-
description:
|
|
2719
|
+
description: "Write a migration in @warlock.js/cascade; use when you need to write migration."
|
|
2720
2720
|
---
|
|
2721
2721
|
|
|
2722
2722
|
# Write a migration
|
package/llms.txt
CHANGED
|
@@ -6,19 +6,19 @@
|
|
|
6
6
|
|
|
7
7
|
## Skills
|
|
8
8
|
|
|
9
|
-
- [aggregate-data](@warlock.js/cascade/aggregate-data/SKILL.md):
|
|
10
|
-
- [alter-migration](@warlock.js/cascade/alter-migration/SKILL.md):
|
|
11
|
-
- [cascade-basics](@warlock.js/cascade/cascade-basics/SKILL.md): Start
|
|
12
|
-
- [configure-delete-strategy](@warlock.js/cascade/configure-delete-strategy/SKILL.md):
|
|
13
|
-
- [define-model](@warlock.js/cascade/define-model/SKILL.md): Define a
|
|
14
|
-
- [define-relations](@warlock.js/cascade/define-relations/SKILL.md): Define and query relations
|
|
15
|
-
- [manage-data-sources](@warlock.js/cascade/manage-data-sources/SKILL.md):
|
|
16
|
-
- [manage-transactions](@warlock.js/cascade/manage-transactions/SKILL.md):
|
|
17
|
-
- [paginate-results](@warlock.js/cascade/paginate-results/SKILL.md): Paginate
|
|
18
|
-
- [perform-atomic-ops](@warlock.js/cascade/perform-atomic-ops/SKILL.md):
|
|
19
|
-
- [query-data](@warlock.js/cascade/query-data/SKILL.md): Query
|
|
20
|
-
- [run-cascade-cli](@warlock.js/cascade/run-cascade-cli/SKILL.md):
|
|
21
|
-
- [search-by-vector](@warlock.js/cascade/search-by-vector/SKILL.md):
|
|
22
|
-
- [subscribe-to-model-events](@warlock.js/cascade/subscribe-to-model-events/SKILL.md):
|
|
23
|
-
- [track-changes](@warlock.js/cascade/track-changes/SKILL.md):
|
|
24
|
-
- [write-migration](@warlock.js/cascade/write-migration/SKILL.md): Write a
|
|
9
|
+
- [aggregate-data](@warlock.js/cascade/aggregate-data/SKILL.md): Use aggregates and groupBy in @warlock.js/cascade; use when you need to aggregate data.
|
|
10
|
+
- [alter-migration](@warlock.js/cascade/alter-migration/SKILL.md): Alter a migration in @warlock.js/cascade; use when you need to alter migration.
|
|
11
|
+
- [cascade-basics](@warlock.js/cascade/cascade-basics/SKILL.md): Start here for @warlock.js/cascade models, data sources, migrations, and query workflows.
|
|
12
|
+
- [configure-delete-strategy](@warlock.js/cascade/configure-delete-strategy/SKILL.md): Use delete strategies in @warlock.js/cascade; use when you need to configure delete strategy.
|
|
13
|
+
- [define-model](@warlock.js/cascade/define-model/SKILL.md): Define a model in @warlock.js/cascade; use when you need to define model.
|
|
14
|
+
- [define-relations](@warlock.js/cascade/define-relations/SKILL.md): Define and query relations in @warlock.js/cascade; use when you need to define relations.
|
|
15
|
+
- [manage-data-sources](@warlock.js/cascade/manage-data-sources/SKILL.md): Manage data sources in @warlock.js/cascade; use when you need to manage data sources.
|
|
16
|
+
- [manage-transactions](@warlock.js/cascade/manage-transactions/SKILL.md): Use transactions in @warlock.js/cascade; use when you need to manage transactions.
|
|
17
|
+
- [paginate-results](@warlock.js/cascade/paginate-results/SKILL.md): Paginate results in @warlock.js/cascade; use when you need to paginate results.
|
|
18
|
+
- [perform-atomic-ops](@warlock.js/cascade/perform-atomic-ops/SKILL.md): Use atomic operations in @warlock.js/cascade; use when you need to perform atomic ops.
|
|
19
|
+
- [query-data](@warlock.js/cascade/query-data/SKILL.md): Query data in @warlock.js/cascade; use when you need to query data.
|
|
20
|
+
- [run-cascade-cli](@warlock.js/cascade/run-cascade-cli/SKILL.md): Run the cascade CLI / Operations API in @warlock.js/cascade; use when you need to run cascade cli.
|
|
21
|
+
- [search-by-vector](@warlock.js/cascade/search-by-vector/SKILL.md): Use vector search in @warlock.js/cascade; use when you need to search by vector.
|
|
22
|
+
- [subscribe-to-model-events](@warlock.js/cascade/subscribe-to-model-events/SKILL.md): Use model events in @warlock.js/cascade; use when you need to subscribe to model events.
|
|
23
|
+
- [track-changes](@warlock.js/cascade/track-changes/SKILL.md): Track changes in @warlock.js/cascade; use when you need to track changes.
|
|
24
|
+
- [write-migration](@warlock.js/cascade/write-migration/SKILL.md): Write a migration in @warlock.js/cascade; use when you need to write migration.
|
package/package.json
CHANGED
|
@@ -13,9 +13,9 @@
|
|
|
13
13
|
"@mongez/events": "^2.2.7",
|
|
14
14
|
"@mongez/reinforcements": "^4.0.1",
|
|
15
15
|
"@mongez/supportive-is": "^2.1.4",
|
|
16
|
-
"@warlock.js/context": "5.
|
|
17
|
-
"@warlock.js/logger": "5.
|
|
18
|
-
"@warlock.js/seal": "5.
|
|
16
|
+
"@warlock.js/context": "5.19.0",
|
|
17
|
+
"@warlock.js/logger": "5.19.0",
|
|
18
|
+
"@warlock.js/seal": "5.19.0",
|
|
19
19
|
"citty": "^0.2.2",
|
|
20
20
|
"fast-glob": "^3.3.3"
|
|
21
21
|
},
|
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
],
|
|
52
52
|
"author": "hassanzohdy",
|
|
53
53
|
"license": "MIT",
|
|
54
|
-
"version": "5.
|
|
54
|
+
"version": "5.19.0",
|
|
55
55
|
"main": "./cjs/index.cjs",
|
|
56
56
|
"module": "./esm/index.mjs",
|
|
57
57
|
"types": "./esm/index.d.mts",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: aggregate-data
|
|
3
|
-
description:
|
|
3
|
+
description: "Use aggregates and groupBy in @warlock.js/cascade; use when you need to aggregate data."
|
|
4
4
|
---
|
|
5
5
|
|
|
6
6
|
# Use aggregates and groupBy
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: alter-migration
|
|
3
|
-
description:
|
|
3
|
+
description: "Alter a migration in @warlock.js/cascade; use when you need to alter migration."
|
|
4
4
|
---
|
|
5
5
|
|
|
6
6
|
# Alter a migration
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: cascade-basics
|
|
3
|
-
description:
|
|
3
|
+
description: "Start here for @warlock.js/cascade models, data sources, migrations, and query workflows."
|
|
4
4
|
---
|
|
5
5
|
|
|
6
6
|
# Cascade basics
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: configure-delete-strategy
|
|
3
|
-
description:
|
|
3
|
+
description: "Use delete strategies in @warlock.js/cascade; use when you need to configure delete strategy."
|
|
4
4
|
---
|
|
5
5
|
|
|
6
6
|
# Use delete strategies
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: define-model
|
|
3
|
-
description:
|
|
3
|
+
description: "Define a model in @warlock.js/cascade; use when you need to define model."
|
|
4
4
|
---
|
|
5
5
|
|
|
6
6
|
# Define a model
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: define-relations
|
|
3
|
-
description:
|
|
3
|
+
description: "Define and query relations in @warlock.js/cascade; use when you need to define relations."
|
|
4
4
|
---
|
|
5
5
|
|
|
6
6
|
# Define and query relations
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: manage-data-sources
|
|
3
|
-
description:
|
|
3
|
+
description: "Manage data sources in @warlock.js/cascade; use when you need to manage data sources."
|
|
4
4
|
---
|
|
5
5
|
|
|
6
6
|
# Manage data sources
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: manage-transactions
|
|
3
|
-
description:
|
|
3
|
+
description: "Use transactions in @warlock.js/cascade; use when you need to manage transactions."
|
|
4
4
|
---
|
|
5
5
|
|
|
6
6
|
# Use transactions
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: paginate-results
|
|
3
|
-
description:
|
|
3
|
+
description: "Paginate results in @warlock.js/cascade; use when you need to paginate results."
|
|
4
4
|
---
|
|
5
5
|
|
|
6
6
|
# Paginate results
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: perform-atomic-ops
|
|
3
|
-
description:
|
|
3
|
+
description: "Use atomic operations in @warlock.js/cascade; use when you need to perform atomic ops."
|
|
4
4
|
---
|
|
5
5
|
|
|
6
6
|
# Use atomic operations
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: query-data
|
|
3
|
-
description:
|
|
3
|
+
description: "Query data in @warlock.js/cascade; use when you need to query data."
|
|
4
4
|
---
|
|
5
5
|
|
|
6
6
|
# Query data
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: run-cascade-cli
|
|
3
|
-
description:
|
|
3
|
+
description: "Run the cascade CLI / Operations API in @warlock.js/cascade; use when you need to run cascade cli."
|
|
4
4
|
---
|
|
5
5
|
|
|
6
6
|
# Run the cascade CLI / Operations API
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: search-by-vector
|
|
3
|
-
description:
|
|
3
|
+
description: "Use vector search in @warlock.js/cascade; use when you need to search by vector."
|
|
4
4
|
---
|
|
5
5
|
|
|
6
6
|
# Use vector search
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: subscribe-to-model-events
|
|
3
|
-
description:
|
|
3
|
+
description: "Use model events in @warlock.js/cascade; use when you need to subscribe to model events."
|
|
4
4
|
---
|
|
5
5
|
|
|
6
6
|
# Use model events
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: track-changes
|
|
3
|
-
description:
|
|
3
|
+
description: "Track changes in @warlock.js/cascade; use when you need to track changes."
|
|
4
4
|
---
|
|
5
5
|
|
|
6
6
|
# Track changes
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: write-migration
|
|
3
|
-
description:
|
|
3
|
+
description: "Write a migration in @warlock.js/cascade; use when you need to write migration."
|
|
4
4
|
---
|
|
5
5
|
|
|
6
6
|
# Write a migration
|