powersync 0.6.1 → 0.7.1
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/README.md +36 -34
- package/dist/commands/instance/create.d.ts +3 -2
- package/dist/commands/instance/create.js +17 -17
- package/dist/commands/instance/deploy.d.ts +2 -1
- package/dist/commands/instance/deploy.js +16 -17
- package/dist/commands/instance/sync-rules/generate-schema.js +1 -0
- package/dist/commands.utils.js +7 -1
- package/dist/instance-command-flags.d.ts +12 -0
- package/dist/instance-command-flags.js +13 -0
- package/dist/service/accounts.client.js +4 -4
- package/dist/service/powersync.client.js +57312 -25766
- package/dist/service/utils.js +4 -4
- package/dist/utils.d.ts +7 -0
- package/oclif.manifest.json +34 -17
- package/package.json +4 -4
package/dist/service/utils.js
CHANGED
|
@@ -18,7 +18,7 @@ var files = [
|
|
|
18
18
|
"/dist",
|
|
19
19
|
"/oclif.manifest.json"
|
|
20
20
|
];
|
|
21
|
-
var version = "0.
|
|
21
|
+
var version = "0.7.1";
|
|
22
22
|
var bugs = "https://github.com/powersync-ja/cli/issues";
|
|
23
23
|
var types = "dist/index.d.ts";
|
|
24
24
|
var exports = "./lib/index.js";
|
|
@@ -76,12 +76,12 @@ var dependencies = {
|
|
|
76
76
|
};
|
|
77
77
|
var devDependencies = {
|
|
78
78
|
"@changesets/cli": "^2.27.7",
|
|
79
|
-
"@journeyapps-platform/powersync
|
|
79
|
+
"@journeyapps-platform/types-powersync": "^1.12.1",
|
|
80
80
|
"@journeyapps-platform/sdk-accounts-hub": "^7.0.1",
|
|
81
81
|
"@journeyapps-platform/sdk-common": "^5.5.0",
|
|
82
|
-
"@journeyapps-platform/sdk-powersync": "^
|
|
82
|
+
"@journeyapps-platform/sdk-powersync": "^2.5.1",
|
|
83
83
|
"@journeyapps-platform/types-accounts-hub": "^7.0.1",
|
|
84
|
-
"@powersync/service-sync-rules": "^0.
|
|
84
|
+
"@powersync/service-sync-rules": "^0.27.0",
|
|
85
85
|
"@rollup/plugin-commonjs": "^26.0.1",
|
|
86
86
|
"@rollup/plugin-json": "^6.1.0",
|
|
87
87
|
"@rollup/plugin-node-resolve": "^15.2.3",
|
package/dist/utils.d.ts
CHANGED
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
import type { FlagInput } from '@oclif/core/lib/interfaces/parser.js';
|
|
2
|
+
/**
|
|
3
|
+
* Oclif flags include {[flag: string]: any} which allows for any additional flag members.
|
|
4
|
+
* This makes using flags vulnerable to typos and errors.
|
|
5
|
+
* This helper type only exposes the declared flag members in the type.
|
|
6
|
+
*/
|
|
7
|
+
export type StrictFlags<T> = T extends FlagInput<infer U> ? U : never;
|
|
1
8
|
export declare const checkThatEnvVariablesAreSet: (cliName: string, requiresInstanceId?: boolean) => undefined;
|
|
2
9
|
export declare const updateEnvFileVariableValue: (variableName: string, newValue: string) => void;
|
|
3
10
|
export declare const bold: (text: string) => string;
|
package/oclif.manifest.json
CHANGED
|
@@ -78,6 +78,22 @@
|
|
|
78
78
|
"<%= config.bin %> <%= command.id %>"
|
|
79
79
|
],
|
|
80
80
|
"flags": {
|
|
81
|
+
"name": {
|
|
82
|
+
"char": "i",
|
|
83
|
+
"description": "Name of the instance.",
|
|
84
|
+
"name": "name",
|
|
85
|
+
"hasDynamicHelp": false,
|
|
86
|
+
"multiple": false,
|
|
87
|
+
"type": "option"
|
|
88
|
+
},
|
|
89
|
+
"region": {
|
|
90
|
+
"char": "r",
|
|
91
|
+
"description": "Region to deploy instance to.",
|
|
92
|
+
"name": "region",
|
|
93
|
+
"hasDynamicHelp": false,
|
|
94
|
+
"multiple": false,
|
|
95
|
+
"type": "option"
|
|
96
|
+
},
|
|
81
97
|
"databaseName": {
|
|
82
98
|
"char": "n",
|
|
83
99
|
"description": "Name of the database.",
|
|
@@ -129,14 +145,6 @@
|
|
|
129
145
|
"multiple": false,
|
|
130
146
|
"type": "option"
|
|
131
147
|
},
|
|
132
|
-
"name": {
|
|
133
|
-
"char": "i",
|
|
134
|
-
"description": "Name of the instance.",
|
|
135
|
-
"name": "name",
|
|
136
|
-
"hasDynamicHelp": false,
|
|
137
|
-
"multiple": false,
|
|
138
|
-
"type": "option"
|
|
139
|
-
},
|
|
140
148
|
"port": {
|
|
141
149
|
"char": "o",
|
|
142
150
|
"description": "Port number to connect to database.",
|
|
@@ -145,14 +153,6 @@
|
|
|
145
153
|
"multiple": false,
|
|
146
154
|
"type": "option"
|
|
147
155
|
},
|
|
148
|
-
"region": {
|
|
149
|
-
"char": "r",
|
|
150
|
-
"description": "Region to deploy instance to.",
|
|
151
|
-
"name": "region",
|
|
152
|
-
"hasDynamicHelp": false,
|
|
153
|
-
"multiple": false,
|
|
154
|
-
"type": "option"
|
|
155
|
-
},
|
|
156
156
|
"skipInteraction": {
|
|
157
157
|
"char": "s",
|
|
158
158
|
"description": "Skip interactivity.",
|
|
@@ -160,6 +160,14 @@
|
|
|
160
160
|
"allowNo": false,
|
|
161
161
|
"type": "boolean"
|
|
162
162
|
},
|
|
163
|
+
"supabaseJWTSecret": {
|
|
164
|
+
"char": "j",
|
|
165
|
+
"description": "Supabase JWT secret",
|
|
166
|
+
"name": "supabaseJWTSecret",
|
|
167
|
+
"hasDynamicHelp": false,
|
|
168
|
+
"multiple": false,
|
|
169
|
+
"type": "option"
|
|
170
|
+
},
|
|
163
171
|
"useSupabaseAuth": {
|
|
164
172
|
"char": "b",
|
|
165
173
|
"description": "Use Supabase auth.",
|
|
@@ -238,6 +246,7 @@
|
|
|
238
246
|
"char": "a",
|
|
239
247
|
"description": "JWT audiences (comma separated).",
|
|
240
248
|
"name": "jwtAudiences",
|
|
249
|
+
"default": "",
|
|
241
250
|
"hasDynamicHelp": false,
|
|
242
251
|
"multiple": false,
|
|
243
252
|
"type": "option"
|
|
@@ -257,6 +266,14 @@
|
|
|
257
266
|
"allowNo": false,
|
|
258
267
|
"type": "boolean"
|
|
259
268
|
},
|
|
269
|
+
"supabaseJWTSecret": {
|
|
270
|
+
"char": "j",
|
|
271
|
+
"description": "Supabase JWT secret",
|
|
272
|
+
"name": "supabaseJWTSecret",
|
|
273
|
+
"hasDynamicHelp": false,
|
|
274
|
+
"multiple": false,
|
|
275
|
+
"type": "option"
|
|
276
|
+
},
|
|
260
277
|
"useSupabaseAuth": {
|
|
261
278
|
"char": "b",
|
|
262
279
|
"description": "Use Supabase auth.",
|
|
@@ -633,5 +650,5 @@
|
|
|
633
650
|
]
|
|
634
651
|
}
|
|
635
652
|
},
|
|
636
|
-
"version": "0.
|
|
653
|
+
"version": "0.7.1"
|
|
637
654
|
}
|
package/package.json
CHANGED
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
"/dist",
|
|
17
17
|
"/oclif.manifest.json"
|
|
18
18
|
],
|
|
19
|
-
"version": "0.
|
|
19
|
+
"version": "0.7.1",
|
|
20
20
|
"bugs": "https://github.com/powersync-ja/cli/issues",
|
|
21
21
|
"types": "dist/index.d.ts",
|
|
22
22
|
"exports": "./lib/index.js",
|
|
@@ -57,12 +57,12 @@
|
|
|
57
57
|
},
|
|
58
58
|
"devDependencies": {
|
|
59
59
|
"@changesets/cli": "^2.27.7",
|
|
60
|
-
"@journeyapps-platform/powersync
|
|
60
|
+
"@journeyapps-platform/types-powersync": "^1.12.1",
|
|
61
61
|
"@journeyapps-platform/sdk-accounts-hub": "^7.0.1",
|
|
62
62
|
"@journeyapps-platform/sdk-common": "^5.5.0",
|
|
63
|
-
"@journeyapps-platform/sdk-powersync": "^
|
|
63
|
+
"@journeyapps-platform/sdk-powersync": "^2.5.1",
|
|
64
64
|
"@journeyapps-platform/types-accounts-hub": "^7.0.1",
|
|
65
|
-
"@powersync/service-sync-rules": "^0.
|
|
65
|
+
"@powersync/service-sync-rules": "^0.27.0",
|
|
66
66
|
"@rollup/plugin-commonjs": "^26.0.1",
|
|
67
67
|
"@rollup/plugin-json": "^6.1.0",
|
|
68
68
|
"@rollup/plugin-node-resolve": "^15.2.3",
|