@protobase/cli 0.79.1 → 0.79.2

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.
@@ -1,4 +1,4 @@
1
1
  //#region package.json
2
- var version = "0.79.1";
2
+ var version = "0.79.2";
3
3
  //#endregion
4
4
  export { version };
@@ -8,13 +8,14 @@ import { appNameOver } from "@protobase/server";
8
8
  * `extensions`: its mobile section, unchecked, whether it has `notifications()`, and with sign-in on the app's URL, its
9
9
  * tokens' issuer, and its name.
10
10
  * The project's .env is loaded first, as other commands do, and no `PROTOBASE_ANDROID_*` variable is left in the
11
- * environment; nothing but the configs runs.
11
+ * environment; nothing but the configs runs. A config function is called with `command: 'build'`, as for the deploy bundle
12
+ * the app's files come from, so the binary's fingerprint and that bundle's manifest name the same `notifications()`.
12
13
  */
13
14
  const loadMobileProject = async (dir, extensions) => {
14
15
  loadNearestEnvFile(dir);
15
16
  dropAndroidSigning(process.env);
16
17
  const { mobile, auth, url, name, notifications } = await loadSourceConfig(dir, {
17
- command: "tool",
18
+ command: "build",
18
19
  extensions
19
20
  });
20
21
  const appName = appNameOver(process.env, name);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@protobase/cli",
3
- "version": "0.79.1",
3
+ "version": "0.79.2",
4
4
  "description": "The protobase command: scaffold, doctor, dev, build and serve a Protobase project.",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
@@ -43,13 +43,13 @@
43
43
  "dependencies": {
44
44
  "@better-auth/core": "^1.7.12",
45
45
  "@hono/node-server": "^2.1.3",
46
- "@protobase/config": "0.79.1",
47
- "@protobase/layout": "0.79.1",
48
- "@protobase/query": "0.79.1",
49
- "@protobase/schema": "0.79.1",
50
- "@protobase/server": "0.79.1",
51
- "@protobase/ui": "0.79.1",
52
- "@protobase/workflows": "0.79.1",
46
+ "@protobase/config": "0.79.2",
47
+ "@protobase/layout": "0.79.2",
48
+ "@protobase/query": "0.79.2",
49
+ "@protobase/schema": "0.79.2",
50
+ "@protobase/server": "0.79.2",
51
+ "@protobase/ui": "0.79.2",
52
+ "@protobase/workflows": "0.79.2",
53
53
  "@react-email/render": "^2.1.0",
54
54
  "@scalar/hono-api-reference": "^0.12.10",
55
55
  "@sentry/vite-plugin": "^11.10.0",
@@ -163,4 +163,4 @@ Put your Firebase project's `google-services.json` in the project folder, next t
163
163
 
164
164
  The user turns push on from the bell, or from your own button with [`usePushNotifications`](../reference/notifications.md#in-the-browser). Android 13 and later ask for the permission then. Signing out removes the phone's registration.
165
165
 
166
- A tap on a notification whose `url` is on your app's server opens that page inside the app. Any other `http` or `https` url opens in the phone's browser, never inside the app, and any other url opens nothing. Turning push on or off changes the app's native code, so it ships in a store release, not a [live update](#7-live-updates).
166
+ A tap on a notification whose `url` is on your app's server opens that page inside the app. Any other `http` or `https` url opens in the phone's browser, never inside the app, and any other url opens nothing. Turning push on or off changes the app's native code, so it ships in a store release, not a [live update](#7-live-updates). <gap>An app with `notifications()` on cannot get live updates on Protobase Cloud because fingerprinting its release with the manifest's `push` is not implemented there.</gap> <gap>A self-hosted server cannot offer live updates to an app whose config function turns `notifications()` on for `build` and not for `serve`, or the other way round, because fingerprinting a served release from its bundle's manifest is not implemented.</gap>
@@ -57,7 +57,7 @@ export default defineConfig(({ command, env }) => ({
57
57
 
58
58
  | | |
59
59
  | --- | --- |
60
- | `command` | `dev`, `build`, `serve` (also `protobase worker` and the serve runtime's `create-admin`; the runtime's `migrate` never reads the config), or `tool`, any other command over the project, such as `migration`, `users` or `doctor` |
60
+ | `command` | `dev`, `build` (also `protobase mobile`, which builds the app's files as a deploy bundle), `serve` (also `protobase worker` and the serve runtime's `create-admin`; the runtime's `migrate` never reads the config), or `tool`, any other command over the project, such as `migration`, `users` or `doctor` |
61
61
  | `env` | `process.env`, with the project's `.env` loaded |
62
62
  | `root` | the project's folder |
63
63