@stacksjs/defaults 0.75.362 → 0.75.366
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) | 19 |
|
|
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 |
|
|
@@ -851,9 +851,9 @@ Guidance: [`stacks-testing`](../stacks-testing/SKILL.md). Source: [storage/frame
|
|
|
851
851
|
|
|
852
852
|
Read the entrypoint and package export map for re-exported or type-only surfaces.
|
|
853
853
|
|
|
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/time.ts](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/testing/src/time.ts).
|
|
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: [19 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
|
|
|
@@ -144,6 +144,12 @@ holding unsettled liabilities. Returned provider objects are server-only. Moveme
|
|
|
144
144
|
amounts/fees/net retain their settlement currency and exchange rate; never mix them
|
|
145
145
|
with presentment-currency contributor shares or infer a fee refund from a charge refund.
|
|
146
146
|
|
|
147
|
+
`directChargeFeeAmounts(facts)` reports the charge's exact retained presentment
|
|
148
|
+
fee when no fee was returned, and exact zero after the full fee was returned,
|
|
149
|
+
including across settlement currencies. A partial foreign-currency fee return
|
|
150
|
+
has null remaining/returned presentment cents and requires review; do not infer
|
|
151
|
+
an FX amount. Same-currency returns use the provider's actual minor units.
|
|
152
|
+
|
|
147
153
|
`createConnectedAccount` makes a Managed Risk account unless you pass `type` or
|
|
148
154
|
`controller` (`MANAGED_RISK_CONTROLLER`: Stripe carries losses, full Stripe
|
|
149
155
|
Dashboard, Stripe-hosted onboarding). Stripe refuses `type: 'express'`/`'custom'`
|
|
@@ -370,6 +376,10 @@ refund. Also `Payment.connect.refund` / `.refundParams` / `.isDestinationCharge`
|
|
|
370
376
|
|
|
371
377
|
#### Checkout outcomes: `checkoutOutcome(event)`
|
|
372
378
|
|
|
379
|
+
Only `payment` and `subscription` modes have payment outcomes. Setup sessions
|
|
380
|
+
save a payment method and return null, as do unknown or absent modes. Never
|
|
381
|
+
fulfil a purchase from a setup session's `no_payment_required` status.
|
|
382
|
+
|
|
373
383
|
```typescript
|
|
374
384
|
import { checkoutOutcome } from '@stacksjs/payments'
|
|
375
385
|
|
|
@@ -169,7 +169,7 @@ expect(result.exitCode).toBe(0)
|
|
|
169
169
|
|
|
170
170
|
Retained implementation evidence lives under `core/testing/tests/`:
|
|
171
171
|
`http-client`, `acting-as`, `database-assertions`, `events`, `mail`, `time`,
|
|
172
|
-
`console`, `isolated`, `disposable-database`, `browser` and `declarations` (what dtsx
|
|
172
|
+
`console`, `isolated`, `disposable-database`, `schema`, `browser` and `declarations` (what dtsx
|
|
173
173
|
publishes for `browser.ts` / `isolated.ts`: no `unknown` fields) test files. Fixture mechanics live in `core/testing/src/`;
|
|
174
174
|
`package.json` declares the root and database/DynamoDB/browser export boundaries.
|
|
175
175
|
|
|
@@ -216,6 +216,13 @@ for (const dialect of ['sqlite', 'postgres'] as const) {
|
|
|
216
216
|
`DB_USERNAME`/`DB_PASSWORD`); `database.directory` is removed with it.
|
|
217
217
|
- `createDisposableDatabase` returns the same with `drop()` and `Symbol.asyncDispose`
|
|
218
218
|
(`await using`), for setups that span hooks.
|
|
219
|
+
- `applyTestSchema(statements)` applies trusted, transaction-compatible schema SQL
|
|
220
|
+
to the initialized SQLite or PostgreSQL test database atomically. PostgreSQL
|
|
221
|
+
sends one protocol batch; SQLite executes the statements inside one transaction.
|
|
222
|
+
A failure rolls back the complete batch, including created tables and seed rows.
|
|
223
|
+
Use it inside the isolated fixture after configuring its disposable database;
|
|
224
|
+
it does not order model dependencies, disable constraints, or replace production
|
|
225
|
+
migrations (for example, concurrent indexes require their own migration policy).
|
|
219
226
|
|
|
220
227
|
## Browser tests: `@stacksjs/testing/browser`
|
|
221
228
|
|
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.366",
|
|
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.366",
|
|
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.366",
|
|
49
49
|
"@stacksjs/sanitizer": "0.2.736",
|
|
50
50
|
"@stacksjs/stx": "0.2.736",
|
|
51
51
|
"@xterm/addon-fit": "^0.11.0",
|