@stoker-platform/cli 0.5.97 → 0.5.99

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/lib/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stoker-platform/cli",
3
- "version": "0.5.96",
3
+ "version": "0.5.98",
4
4
  "type": "module",
5
5
  "license": "SEE LICENSE IN LICENSE.md",
6
6
  "main": "./lib/src/main.js",
@@ -15,13 +15,19 @@ export const deployProject = async (options) => {
15
15
  if (!options.initial) {
16
16
  const currentSchema = await generateSchema();
17
17
  const lastSchema = await fetchCurrentSchema();
18
- const currentScemaCopy = cloneDeep(currentSchema);
19
- delete currentScemaCopy.published_time;
20
- delete currentScemaCopy.version;
18
+ const currentSchemaCopy = cloneDeep(currentSchema);
19
+ delete currentSchemaCopy.published_time;
20
+ delete currentSchemaCopy.version;
21
+ if (!currentSchemaCopy.config.writeLogIndexExemption?.length)
22
+ delete currentSchemaCopy.config.writeLogIndexExemption;
23
+ for (const collection of Object.values(currentSchemaCopy.collections)) {
24
+ if (!collection.queries?.length)
25
+ delete collection.queries;
26
+ }
21
27
  const lastSchemaCopy = cloneDeep(lastSchema);
22
28
  delete lastSchemaCopy.published_time;
23
29
  delete lastSchemaCopy.version;
24
- if (!options.maintenanceOn && !isEqual(currentScemaCopy, lastSchemaCopy)) {
30
+ if (!options.maintenanceOn && !isEqual(currentSchemaCopy, lastSchemaCopy)) {
25
31
  throw new Error("The schema for this project has changed. Maintenance mode cannot be disabled.");
26
32
  }
27
33
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stoker-platform/cli",
3
- "version": "0.5.97",
3
+ "version": "0.5.99",
4
4
  "type": "module",
5
5
  "license": "SEE LICENSE IN LICENSE.md",
6
6
  "main": "./lib/src/main.js",
@@ -24,9 +24,9 @@
24
24
  "@google-cloud/secret-manager": "^6.1.2",
25
25
  "@google-cloud/storage": "^7.19.0",
26
26
  "@inquirer/prompts": "^8.5.2",
27
- "@stoker-platform/node-client": "0.5.65",
28
- "@stoker-platform/types": "0.5.44",
29
- "@stoker-platform/utils": "0.5.56",
27
+ "@stoker-platform/node-client": "0.5.66",
28
+ "@stoker-platform/types": "0.5.45",
29
+ "@stoker-platform/utils": "0.5.57",
30
30
  "algoliasearch": "^5.53.0",
31
31
  "commander": "^15.0.0",
32
32
  "cross-spawn": "^7.0.6",