@plitzi/sdk-dev-tools 0.37.6 → 0.37.8

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.
Files changed (2) hide show
  1. package/CHANGELOG.md +50 -0
  2. package/package.json +5 -5
package/CHANGELOG.md CHANGED
@@ -1,5 +1,55 @@
1
1
  # @plitzi/sdk-dev-tools
2
2
 
3
+ ## 0.37.8
4
+
5
+ ### Patch Changes
6
+
7
+ - 4d10e0a: ## Fixed: an api container could not read a file from a CDN
8
+
9
+ - **What happened:** the api container sent `Content-Type: application/json` on every request, including a GET with no
10
+ body to describe. That made every read a non-simple cross-origin request, so the browser asked the host's
11
+ permission first.
12
+ - **Who it hit:** hosts that allow plain cross-origin reads (GET and HEAD from any origin, the usual CORS of a public
13
+ bucket, the space's own CDN among them) refused that preflight. The file never loaded. Tremor's world outlines on
14
+ `cdn-dev.plitzi.com` are one example.
15
+ - **What changes:** a read now sends `Accept: application/json`, and `Content-Type` goes only with a body, unless the
16
+ author set their own. Headers the author adds still make the request non-simple, as they must.
17
+
18
+ - Updated dependencies [4d10e0a]
19
+ - @plitzi/sdk-navigation@0.37.8
20
+ - @plitzi/sdk-schema@0.37.8
21
+ - @plitzi/sdk-shared@0.37.8
22
+ - @plitzi/sdk-style@0.37.8
23
+
24
+ ## 0.37.7
25
+
26
+ ### Patch Changes
27
+
28
+ - 4d10e0a: ## CDNs with several buckets
29
+
30
+ A CDN is the customer's own storage account — S3 or R2, which they run and pay for — and now holds any number of
31
+ buckets, each with its own configuration: its name at the provider, its region, `public` (served at its domain) or
32
+ `private` (no domain, read only by the platform with the CDN's credential).
33
+
34
+ - `Cdn` carries `buckets: CdnBucket[]`; `domain`, `visibility`, `bucketName` and `region` moved from the CDN to its
35
+ buckets. `Resource.bucketIdentifier` names the bucket a file is in.
36
+ - `SpaceAddCdn(name, provider, endpoint, buckets)` creates the account with its buckets; `SpaceUpdateCdn` changes the
37
+ account only. New `SpaceAddCdnBucket`, `SpaceUpdateCdnBucket` and `SpaceRemoveCdnBucket`.
38
+ - `SpaceResources`, `SpaceAddResource`, `SpaceRemoveResource` and `SpaceMoveResource` take `bucketIdentifier`.
39
+ - Server code — functions and runtime — goes in the space's oldest private bucket. A bucket that keeps code a version
40
+ runs can be neither made public, pointed at another bucket nor removed, and neither can its CDN.
41
+ - Builder: Resources shows each CDN with its buckets — add, edit and remove buckets, upload and browse per bucket; the
42
+ account (name, provider, endpoint, credential) is edited apart. Saving an element as a template picks a public
43
+ bucket (`elementAsTemplate({ cdnIdentifier, bucketIdentifier }, …)`).
44
+ - CLI: `plitzi upload plugin --bucket <identifier>` (with `--cdn` to narrow); only public buckets are offered, a private
45
+ one is refused.
46
+
47
+ - Updated dependencies [4d10e0a]
48
+ - @plitzi/sdk-navigation@0.37.7
49
+ - @plitzi/sdk-schema@0.37.7
50
+ - @plitzi/sdk-shared@0.37.7
51
+ - @plitzi/sdk-style@0.37.7
52
+
3
53
  ## 0.37.6
4
54
 
5
55
  ### Patch Changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@plitzi/sdk-dev-tools",
3
- "version": "0.37.6",
3
+ "version": "0.37.8",
4
4
  "license": "AGPL-3.0",
5
5
  "files": [
6
6
  "dist"
@@ -847,10 +847,10 @@
847
847
  "dependencies": {
848
848
  "@plitzi/nexus": "^1.3.1",
849
849
  "@plitzi/plitzi-ui": "^1.6.24",
850
- "@plitzi/sdk-navigation": "0.37.6",
851
- "@plitzi/sdk-schema": "0.37.6",
852
- "@plitzi/sdk-shared": "0.37.6",
853
- "@plitzi/sdk-style": "0.37.6",
850
+ "@plitzi/sdk-navigation": "0.37.8",
851
+ "@plitzi/sdk-schema": "0.37.8",
852
+ "@plitzi/sdk-shared": "0.37.8",
853
+ "@plitzi/sdk-style": "0.37.8",
854
854
  "@uiw/react-json-view": "^2.0.0-alpha.43",
855
855
  "clsx": "^2.1.1"
856
856
  }