@stacksjs/defaults 0.75.366 → 0.75.369
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.
|
@@ -88,7 +88,7 @@ Browser runtime bindings are documented separately in `stacks-auto-imports`.
|
|
|
88
88
|
| `@stacksjs/socials` | [`stacks-socials`](../stacks-socials/SKILL.md) | [entrypoint](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/socials/src/index.ts) | 17 |
|
|
89
89
|
| `@stacksjs/storage` | [`stacks-storage`](../stacks-storage/SKILL.md) | [entrypoint](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/storage/src/index.ts) | 42 |
|
|
90
90
|
| `@stacksjs/strings` | [`stacks-strings`](../stacks-strings/SKILL.md) | [entrypoint](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/strings/src/index.ts) | 7 |
|
|
91
|
-
| `@stacksjs/testing` | [`stacks-testing`](../stacks-testing/SKILL.md) | [entrypoint](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/testing/src/index.ts) |
|
|
91
|
+
| `@stacksjs/testing` | [`stacks-testing`](../stacks-testing/SKILL.md) | [entrypoint](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/testing/src/index.ts) | 20 |
|
|
92
92
|
| `@stacksjs/tinker` | [`stacks-repl`](../stacks-repl/SKILL.md) | [entrypoint](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/tinker/src/index.ts) | 1 |
|
|
93
93
|
| `@stacksjs/tunnel` | [`stacks-tunnel`](../stacks-tunnel/SKILL.md) | [entrypoint](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/tunnel/src/index.ts) | 1 |
|
|
94
94
|
| `@stacksjs/types` | [`stacks-types`](../stacks-types/SKILL.md) | [entrypoint](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/types/src/index.ts) | 2 |
|
|
@@ -853,7 +853,7 @@ Read the entrypoint and package export map for re-exported or type-only surfaces
|
|
|
853
853
|
|
|
854
854
|
Local source modules: [src/console.ts](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/testing/src/console.ts), [src/disposable-database.ts](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/testing/src/disposable-database.ts), [src/events.ts](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/testing/src/events.ts), [src/feature.ts](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/testing/src/feature.ts), [src/isolated.ts](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/testing/src/isolated.ts), [src/mail.ts](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/testing/src/mail.ts), [src/schema.ts](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/testing/src/schema.ts), [src/time.ts](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/testing/src/time.ts).
|
|
855
855
|
|
|
856
|
-
Evidence directory: [
|
|
856
|
+
Evidence directory: [20 retained tests](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/testing/tests). These files are evidence pointers, not a claim that all tests were run for this catalog.
|
|
857
857
|
|
|
858
858
|
### @stacksjs/tinker
|
|
859
859
|
|
|
@@ -201,7 +201,7 @@ active status before its initial invoice is paid. The helper does not finalize
|
|
|
201
201
|
invoices, collect payment, or implement the application's access policy.
|
|
202
202
|
|
|
203
203
|
`collectDirectInvoice(invoiceId, account, { customer, subscription?, currency,
|
|
204
|
-
platformFeePercent, approvedTotal, paymentMethod })` performs that collection
|
|
204
|
+
platformFeePercent, approvedTotal, paymentMethod? })` performs that collection
|
|
205
205
|
step. `approvedTotal` is the inclusive minor-unit amount the buyer approved;
|
|
206
206
|
the saved method must belong to the original merchant customer. It holds the
|
|
207
207
|
invoice, prepares its exact after-tax fee, finalizes, verifies the actual invoice
|
|
@@ -212,6 +212,8 @@ finalizes without a charge. Results distinguish `paid`, `processing` and
|
|
|
212
212
|
available. Do not grant access for processing or customer action. Network errors
|
|
213
213
|
propagate for durable retry. This helper does not create purchases, establish
|
|
214
214
|
customer consent or reverse access after a later refund; those remain app policy.
|
|
215
|
+
Without a saved method it returns the held invoice's payment page without a
|
|
216
|
+
charge attempt. Paid recovery needs no card.
|
|
215
217
|
|
|
216
218
|
After a successful direct-charge refund, `creditDirectInvoiceRefund(invoiceId,
|
|
217
219
|
account, refundId, [{ invoiceLineItem, amount }])` links it to the original
|
|
@@ -251,6 +253,10 @@ of setup creation, when Stripe still guarantees the idempotency key; older
|
|
|
251
253
|
missing bindings require review, never another purchase. Renewals still need
|
|
252
254
|
the app's durable `invoice.created` hold/collection path. Apply access policy
|
|
253
255
|
from both the collection result and current subscription/refund state.
|
|
256
|
+
`DirectInvoicePurchaseExpiredError` is raised only when no bound purchase or
|
|
257
|
+
unbound customer resource was found. Before retiring that attempt, also check
|
|
258
|
+
the app's original invoice/subscription IDs. Unknown resources require review;
|
|
259
|
+
a replacement purchase always needs fresh buyer consent.
|
|
254
260
|
|
|
255
261
|
`directInvoiceTaxFinancials(invoiceId, paymentIntentId, account)` reads canonical
|
|
256
262
|
collected/credited gross, net and tax plus `requiresReview`. Read it under the
|
|
@@ -223,6 +223,8 @@ for (const dialect of ['sqlite', 'postgres'] as const) {
|
|
|
223
223
|
Use it inside the isolated fixture after configuring its disposable database;
|
|
224
224
|
it does not order model dependencies, disable constraints, or replace production
|
|
225
225
|
migrations (for example, concurrent indexes require their own migration policy).
|
|
226
|
+
Standalone fixture scripts import it from `@stacksjs/testing/schema`; the root
|
|
227
|
+
testing barrel registers Bun test-runner hooks and is for `bun test` files.
|
|
226
228
|
|
|
227
229
|
## Browser tests: `@stacksjs/testing/browser`
|
|
228
230
|
|
package/ide/vscode/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"publisher": "Stacks",
|
|
3
3
|
"name": "vscode-stacks",
|
|
4
4
|
"displayName": "Stacks",
|
|
5
|
-
"version": "0.75.
|
|
5
|
+
"version": "0.75.369",
|
|
6
6
|
"description": "Stacks, built into VS Code: stx templates, pickier linting and formatting, encrypted env files, the dev server preview and every buddy command. No other extensions required.",
|
|
7
7
|
"license": "MIT",
|
|
8
8
|
"funding": "https://github.com/sponsors/chrisbbreuer",
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@stacksjs/defaults",
|
|
3
3
|
"type": "module",
|
|
4
4
|
"sideEffects": false,
|
|
5
|
-
"version": "0.75.
|
|
5
|
+
"version": "0.75.369",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
8
8
|
"url": "git+https://github.com/stacksjs/stacks.git",
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
"dependencies": {
|
|
46
46
|
"@iconify-json/f7": "^1.2.2",
|
|
47
47
|
"@iconify-json/hugeicons": "^1.2.35",
|
|
48
|
-
"@stacksjs/mobile": "0.75.
|
|
48
|
+
"@stacksjs/mobile": "0.75.369",
|
|
49
49
|
"@stacksjs/sanitizer": "0.2.736",
|
|
50
50
|
"@stacksjs/stx": "0.2.736",
|
|
51
51
|
"@xterm/addon-fit": "^0.11.0",
|