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