@nitida/sdk 0.31.0 → 0.31.1
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 +1 -1
- package/package.json +2 -2
- package/skills/nitida-sdk/SKILL.md +3 -1
package/README.md
CHANGED
|
@@ -544,7 +544,7 @@ Two delivery paths, **by design**:
|
|
|
544
544
|
|
|
545
545
|
| Kind | Builder | URL shape | Tenant in path? |
|
|
546
546
|
|---|---|---|---|
|
|
547
|
-
| Variant / preset | `urlFor`, `srcSetFor`, upload `cdnUrl` | `<cdn>/<tenantId b36>/v/<sha>-<preset>.<ext>` | **Yes** — `/4/v/<sha>-
|
|
547
|
+
| Variant / preset | `urlFor`, `srcSetFor`, upload `cdnUrl` | `<cdn>/<tenantId b36>/v/<sha>-<preset>.<ext>` | **Yes** — `/4/v/<sha>-l.webp` |
|
|
548
548
|
| On-the-fly transform | `transform`, `transformSrcSet` | `<cdn>/t/<dsl>/<sha>.<ext>` | **No** — `/t/width=1280,.../<sha>.webp` |
|
|
549
549
|
|
|
550
550
|
The transform service is content-addressed by `sha` and resizes from the source on demand,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nitida/sdk",
|
|
3
|
-
"version": "0.31.
|
|
3
|
+
"version": "0.31.1",
|
|
4
4
|
"description": "nitida — the media SDK: browser and mobile upload with resume, client-side compression, on-the-fly transforms behind a CDN, video transcode, HLS ladders and AI proxies. Multi-tenant.",
|
|
5
5
|
"private": false,
|
|
6
6
|
"publishConfig": {
|
|
@@ -73,7 +73,7 @@
|
|
|
73
73
|
},
|
|
74
74
|
"peerDependencies": {
|
|
75
75
|
"react": ">=18",
|
|
76
|
-
"@nitida/asset-client": "^0.20.
|
|
76
|
+
"@nitida/asset-client": "^0.20.1",
|
|
77
77
|
"@nitida/asset-compressor-web": "^0.6.1",
|
|
78
78
|
"@nitida/asset-compressor-native": "^0.2.1"
|
|
79
79
|
},
|
|
@@ -100,7 +100,9 @@ Output URL shape: `https://8ok.uk/t/format=webp,width=640/<sha16>.webp`.
|
|
|
100
100
|
different bytes from the same photo.
|
|
101
101
|
|
|
102
102
|
```ts
|
|
103
|
-
//
|
|
103
|
+
// ✅ Both `setCdnBase` and `setTenantId` ARE re-exported by `@nitida/sdk`
|
|
104
|
+
// and `@nitida/sdk/server` (measured 2026-08-24 on 0.31.0). An older note here
|
|
105
|
+
// said `setCdnBase` was not — it is.
|
|
104
106
|
import { setCdnBase, type TransformWidth } from "@nitida/asset-client";
|
|
105
107
|
import { getTransformSrcSet, getTransformUrl } from "@nitida/sdk";
|
|
106
108
|
|