@civitai/blocks-react 0.73.0 → 0.73.2
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/README.md
CHANGED
|
@@ -1753,8 +1753,10 @@ divergences:
|
|
|
1753
1753
|
- the byte gate refusing a shrinking overwrite that the host admits
|
|
1754
1754
|
([#345](https://github.com/civitai/civitai-app-starters/issues/345));
|
|
1755
1755
|
- 🔴 the byte gate counting **wire** bytes where the host counts **stored**
|
|
1756
|
-
bytes — `octet_length(value::jsonb::text)`, larger for every container
|
|
1757
|
-
|
|
1756
|
+
bytes — `octet_length(value::jsonb::text)`, larger for every container: ~1.5x
|
|
1757
|
+
for a long array of small integers, and measured up to 44.4x for a
|
|
1758
|
+
numeric-heavy one (an array of `1e308`)
|
|
1759
|
+
([#347](https://github.com/civitai/civitai-app-starters/issues/347));
|
|
1758
1760
|
- nothing models the **app-wide** umbrella, so `app quota exceeded` and `app row
|
|
1759
1761
|
limit exceeded` cannot be produced here at all
|
|
1760
1762
|
([#368](https://github.com/civitai/civitai-app-starters/issues/368));
|
|
@@ -1901,11 +1903,6 @@ Only writes that **land** spend the `append`/`update` budget: a write that fails
|
|
|
1901
1903
|
without landing gets its token back. The few failures the platform marks as its
|
|
1902
1904
|
own fault are refunded without a rejection charge too.
|
|
1903
1905
|
|
|
1904
|
-
> The `append`/`update` budget above goes live with the next civitai.com
|
|
1905
|
-
> release. Until then the live limit is a fixed window of **20 posts + edits a
|
|
1906
|
-
> day** per (viewer, app). The vote, withdraw and report limits, and the retry
|
|
1907
|
-
> metadata below, are already live.
|
|
1908
|
-
|
|
1909
1906
|
A write refused for budget arrives with retry metadata, and the hook rejects with
|
|
1910
1907
|
**`SharedStorageRateLimitError`**. It extends the plain `Error` every other
|
|
1911
1908
|
refusal is thrown as, so existing `catch` code keeps working, and `.message` is
|
|
@@ -547,8 +547,10 @@ export interface MockStorageScenario {
|
|
|
547
547
|
* 🔴 AND THIS BUDGET IS COUNTED IN A DIFFERENT UNIT FROM THE HOST'S. The
|
|
548
548
|
* mock sums WIRE bytes (`JSON.stringify` as UTF-8); the host sums STORED
|
|
549
549
|
* bytes (`octet_length(value::jsonb::text)`), which is larger for every
|
|
550
|
-
* container —
|
|
551
|
-
*
|
|
550
|
+
* container — ~1.5x for a long array of small integers, and measured up to
|
|
551
|
+
* 44.4x for a numeric-heavy one (an array of `1e308`). So this ceiling is
|
|
552
|
+
* more generous than production's, by a factor that depends on the data,
|
|
553
|
+
* and unlike the mock's other known
|
|
552
554
|
* divergences that error is PERMISSIVE: a fixture that fits here can be
|
|
553
555
|
* rejected live. civitai/civitai-app-starters#347. Size against
|
|
554
556
|
* `getQuota()`, and treat a local pass as evidence, not proof.
|
|
@@ -3115,7 +3115,9 @@ export function createMockHost(options = {}) {
|
|
|
3115
3115
|
// counts STORED bytes, `octet_length(value::jsonb::text)`.
|
|
3116
3116
|
// `jsonb`'s canonical text inserts a space after every `:` and
|
|
3117
3117
|
// every `,`, so stored > wire for every container — approaching
|
|
3118
|
-
// 1.5x for a long array
|
|
3118
|
+
// 1.5x for a long array of small integers, and up to 44.4x for
|
|
3119
|
+
// a numeric-heavy one (`1e308` is stored as its 309 digits).
|
|
3120
|
+
// This gate therefore ADMITS writes
|
|
3119
3121
|
// production rejects. Permissive: a local pass that is not
|
|
3120
3122
|
// real, which is the direction that ships a bug.
|
|
3121
3123
|
//
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/* AUTOGENERATED from package.json by scripts/gen-version.mjs. DO NOT EDIT. */
|
|
2
2
|
/** This package's version, reported to the host as `sdkVersion` in `BLOCK_READY`. */
|
|
3
|
-
export const VERSION = "0.73.
|
|
3
|
+
export const VERSION = "0.73.2";
|
|
4
4
|
//# sourceMappingURL=version.generated.js.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@civitai/blocks-react",
|
|
3
|
-
"version": "0.73.
|
|
3
|
+
"version": "0.73.2",
|
|
4
4
|
"description": "React hooks and iframe transport for Civitai Apps. Pairs with @civitai/app-sdk/blocks.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -37,8 +37,8 @@
|
|
|
37
37
|
"node": ">=20"
|
|
38
38
|
},
|
|
39
39
|
"dependencies": {
|
|
40
|
-
"@civitai/
|
|
41
|
-
"@civitai/
|
|
40
|
+
"@civitai/components": "^0.10.0",
|
|
41
|
+
"@civitai/theme": "^0.5.2"
|
|
42
42
|
},
|
|
43
43
|
"comment-peerDependencies": "This floor is DERIVED, not chosen — the lowest published app-sdk that exports every symbol this package imports. Do not edit it without reading ./PEER_FLOOR.md (in-repo, unpublished) and tests/guards/blocks-react-peer-floor.test.mjs.",
|
|
44
44
|
"peerDependencies": {
|
|
@@ -58,7 +58,7 @@
|
|
|
58
58
|
"typescript": "^5.9.2",
|
|
59
59
|
"vite": "^8.0.14",
|
|
60
60
|
"vitest": "^4.1.11",
|
|
61
|
-
"@civitai/app-sdk": "^0.
|
|
61
|
+
"@civitai/app-sdk": "^0.71.0"
|
|
62
62
|
},
|
|
63
63
|
"publishConfig": {
|
|
64
64
|
"access": "public"
|