@plitzi/sdk-elements 0.37.3 → 0.37.5

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 +8 -8
package/CHANGELOG.md CHANGED
@@ -1,5 +1,55 @@
1
1
  # @plitzi/sdk-elements
2
2
 
3
+ ## 0.37.5
4
+
5
+ ### Patch Changes
6
+
7
+ - a32a5a2: ## `@plitzi/sdk-shared`'s GraphQL documents are text
8
+
9
+ - **Every document is a plain string marked `/* GraphQL */`**, the builder's as the SDK's already were, and the client
10
+ parses what it sends — the builder with Apollo's `gql`. A server importing the package no longer loads a GraphQL
11
+ parser or parses 115 documents at boot; `graphql` and `graphql-tag` are no longer dependencies.
12
+ - `BuilderQueries` and `BuilderMutations` are typed `Record<keyof …Map, string>`, and every operation is named as its
13
+ file is: `SpacePublish`, `SpaceDeploy`, `SpaceFixIssues`, `SpaceUpdate`, `SpaceUpdateSchema`, `SpaceUpdateElement(s)`,
14
+ `SpaceRemoveElement`, `StyleUpdate` and `SegmentPublish` gain their `Mutation` suffix, and the space's subscription,
15
+ anonymous until now, is `SpaceEventSubscription`.
16
+ - **Breaking:** `BuilderQueries`, `BuilderMutations` and `SpaceEventSubscription` are strings, not `DocumentNode`s —
17
+ pass them through `gql` for Apollo.
18
+
19
+ - Updated dependencies [a32a5a2]
20
+ - @plitzi/sdk-auth@0.37.5
21
+ - @plitzi/sdk-dev-tools@0.37.5
22
+ - @plitzi/sdk-event-bridge@0.37.5
23
+ - @plitzi/sdk-interactions@0.37.5
24
+ - @plitzi/sdk-navigation@0.37.5
25
+ - @plitzi/sdk-schema@0.37.5
26
+ - @plitzi/sdk-shared@0.37.5
27
+
28
+ ## 0.37.4
29
+
30
+ ### Patch Changes
31
+
32
+ - cadd1b9: ## `@plitzi/sdk-shared` loads without Apollo
33
+
34
+ - **The root entry no longer needs `@apollo/client`.** It re-exported every builder query, mutation and subscription,
35
+ written with `gql` from `@apollo/client/core` — a package it never declared. Inside the monorepo the builder's copy
36
+ answered for it; a server installing the published packages (`@plitzi/sdk-server` and anything else that imports
37
+ `@plitzi/sdk-shared`) failed at boot with `ERR_MODULE_NOT_FOUND: @apollo/client`. The documents are now written with
38
+ `graphql-tag`, which Apollo's `gql` already was, and `graphql` is a dependency.
39
+ - **The two helpers that do run Apollo leave the barrels**: `createAuthFailureLink` is imported from
40
+ `@plitzi/sdk-shared/auth/authFailureLink` (no longer from `@plitzi/sdk-shared/auth` or the root) and
41
+ `createStripTypenameLink` from `@plitzi/sdk-shared/helpers/stripTypename`. `@apollo/client` is an optional peer, for
42
+ those two alone.
43
+
44
+ - Updated dependencies [cadd1b9]
45
+ - @plitzi/sdk-auth@0.37.4
46
+ - @plitzi/sdk-dev-tools@0.37.4
47
+ - @plitzi/sdk-event-bridge@0.37.4
48
+ - @plitzi/sdk-interactions@0.37.4
49
+ - @plitzi/sdk-navigation@0.37.4
50
+ - @plitzi/sdk-schema@0.37.4
51
+ - @plitzi/sdk-shared@0.37.4
52
+
3
53
  ## 0.37.3
4
54
 
5
55
  ### Patch Changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@plitzi/sdk-elements",
3
- "version": "0.37.3",
3
+ "version": "0.37.5",
4
4
  "license": "AGPL-3.0",
5
5
  "files": [
6
6
  "dist"
@@ -1078,13 +1078,13 @@
1078
1078
  "dependencies": {
1079
1079
  "@plitzi/nexus": "^1.3.1",
1080
1080
  "@plitzi/plitzi-ui": "^1.6.24",
1081
- "@plitzi/sdk-auth": "0.37.3",
1082
- "@plitzi/sdk-dev-tools": "0.37.3",
1083
- "@plitzi/sdk-event-bridge": "0.37.3",
1084
- "@plitzi/sdk-interactions": "0.37.3",
1085
- "@plitzi/sdk-navigation": "0.37.3",
1086
- "@plitzi/sdk-schema": "0.37.3",
1087
- "@plitzi/sdk-shared": "0.37.3",
1081
+ "@plitzi/sdk-auth": "0.37.5",
1082
+ "@plitzi/sdk-dev-tools": "0.37.5",
1083
+ "@plitzi/sdk-event-bridge": "0.37.5",
1084
+ "@plitzi/sdk-interactions": "0.37.5",
1085
+ "@plitzi/sdk-navigation": "0.37.5",
1086
+ "@plitzi/sdk-schema": "0.37.5",
1087
+ "@plitzi/sdk-shared": "0.37.5",
1088
1088
  "clsx": "^2.1.1",
1089
1089
  "immer": "^11.1.18"
1090
1090
  },