@snowcone-app/sdk 0.10.0 → 0.12.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 CHANGED
@@ -1,5 +1,21 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.12.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [#598](https://github.com/snowcone-app/snowcone-monorepo/pull/598) [`2adb836`](https://github.com/snowcone-app/snowcone-monorepo/commit/2adb836ef477809747d64053d55a84cfa166df9a) Thanks [@kevinsproles](https://github.com/kevinsproles)! - Remove `uploadAsset`, `mintUploadGrant`, and `fetchUploadGrant` (added in 0.11.0). The keyless upload-grant path was reversed (ADR-0084): a keyless, persistent write to shop storage is effectively an anonymous image host on our domain, a different trust class from keyless renders (which are ephemeral). Third-party uploads use the credentialed `POST /uploads/base64` path (`sk_` key, `uploads:write` scope); backend-less integrations pass a public image URL and let the renderer fetch it.
8
+
9
+ ### Patch Changes
10
+
11
+ - [#596](https://github.com/snowcone-app/snowcone-monorepo/pull/596) [`b04c995`](https://github.com/snowcone-app/snowcone-monorepo/commit/b04c995d0a115760341f8b51f1ecbfb01deb8d6b) Thanks [@kevinsproles](https://github.com/kevinsproles)! - Point API-key management links at snowcone.app/studio/api-keys (the old /api-keys route is gone).
12
+
13
+ ## 0.11.0
14
+
15
+ ### Minor Changes
16
+
17
+ - [#591](https://github.com/snowcone-app/snowcone-monorepo/pull/591) [`f15c421`](https://github.com/snowcone-app/snowcone-monorepo/commit/f15c421f11a793064fc5471f3286760f393ac4d7) Thanks [@kevinsproles](https://github.com/kevinsproles)! - Upload grants (ADR-0084): `uploadAsset`, `mintUploadGrant`, and `fetchUploadGrant` extend the realtime grant pattern to user-image uploads, so a static page can accept a shopper's logo with no proxy backend. `uploadAsset(file, { shop })` mints a short-lived grant (keyless publishable path, or sk\_/`grantUrl` for the server-side path), uploads the image, and returns a URL on the shop's own storage origin — already inside the asset-origin allowlist, ready for `getMockupUrl`/`getBuyUrl`.
18
+
3
19
  ## 0.10.0
4
20
 
5
21
  ### Minor Changes
package/README.md CHANGED
@@ -181,7 +181,7 @@ clients. This is exactly how the Snowcone PDP renders mockups (see ADR-0079).
181
181
  Authorize the session with a short-lived **grant**. Mint it server-side with a
182
182
  secret API key (`sk_…`, scope `mockups:realtime`) so the key never reaches the
183
183
  browser. Create the key — and find your publishable `shop.id` — on the
184
- [API keys page](https://snowcone.app/api-keys):
184
+ [API keys page](https://snowcone.app/studio/api-keys):
185
185
 
186
186
  ```typescript
187
187
  // YOUR backend route, e.g. POST /api/realtime/grant
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@snowcone-app/sdk",
3
- "version": "0.10.0",
3
+ "version": "0.12.0",
4
4
  "description": "Snowcone SDK for product mockups and print-on-demand",
5
5
  "keywords": [
6
6
  "merch",