@plitzi/sdk-navigation 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 +44 -0
  2. package/package.json +2 -2
package/CHANGELOG.md CHANGED
@@ -1,5 +1,49 @@
1
1
  # @plitzi/sdk-navigation
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-shared@0.37.8
20
+
21
+ ## 0.37.7
22
+
23
+ ### Patch Changes
24
+
25
+ - 4d10e0a: ## CDNs with several buckets
26
+
27
+ A CDN is the customer's own storage account — S3 or R2, which they run and pay for — and now holds any number of
28
+ buckets, each with its own configuration: its name at the provider, its region, `public` (served at its domain) or
29
+ `private` (no domain, read only by the platform with the CDN's credential).
30
+
31
+ - `Cdn` carries `buckets: CdnBucket[]`; `domain`, `visibility`, `bucketName` and `region` moved from the CDN to its
32
+ buckets. `Resource.bucketIdentifier` names the bucket a file is in.
33
+ - `SpaceAddCdn(name, provider, endpoint, buckets)` creates the account with its buckets; `SpaceUpdateCdn` changes the
34
+ account only. New `SpaceAddCdnBucket`, `SpaceUpdateCdnBucket` and `SpaceRemoveCdnBucket`.
35
+ - `SpaceResources`, `SpaceAddResource`, `SpaceRemoveResource` and `SpaceMoveResource` take `bucketIdentifier`.
36
+ - Server code — functions and runtime — goes in the space's oldest private bucket. A bucket that keeps code a version
37
+ runs can be neither made public, pointed at another bucket nor removed, and neither can its CDN.
38
+ - Builder: Resources shows each CDN with its buckets — add, edit and remove buckets, upload and browse per bucket; the
39
+ account (name, provider, endpoint, credential) is edited apart. Saving an element as a template picks a public
40
+ bucket (`elementAsTemplate({ cdnIdentifier, bucketIdentifier }, …)`).
41
+ - CLI: `plitzi upload plugin --bucket <identifier>` (with `--cdn` to narrow); only public buckets are offered, a private
42
+ one is refused.
43
+
44
+ - Updated dependencies [4d10e0a]
45
+ - @plitzi/sdk-shared@0.37.7
46
+
3
47
  ## 0.37.6
4
48
 
5
49
  ### Patch Changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@plitzi/sdk-navigation",
3
- "version": "0.37.6",
3
+ "version": "0.37.8",
4
4
  "license": "AGPL-3.0",
5
5
  "files": [
6
6
  "dist"
@@ -51,6 +51,6 @@
51
51
  },
52
52
  "dependencies": {
53
53
  "@plitzi/plitzi-ui": "^1.6.24",
54
- "@plitzi/sdk-shared": "0.37.6"
54
+ "@plitzi/sdk-shared": "0.37.8"
55
55
  }
56
56
  }