@somewhere-cloud/cli 0.38.149 → 0.38.151
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 +10 -0
- package/README.md +6 -3
- package/dist/lib/bundle.js +274 -276
- package/dist/lib/bundle.js.map +3 -3
- package/npm-shrinkwrap.json +2 -2
- package/package.json +2 -2
- package/runtime/DECLARED-DATA-VENDOR.json +12 -11
- package/runtime/PLATFORM-SOURCE.json +1 -1
- package/runtime/SOURCE-LINT-VENDOR.json +2 -2
- package/runtime/declared-data.cjs +29 -15
- package/runtime/source-lint.cjs +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,15 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.38.151
|
|
4
|
+
|
|
5
|
+
- The generated project guide shows where to declare data access and how to check it with signed-in users.
|
|
6
|
+
- `somewhere typecheck` recognizes `ownerOnly: true` for caller-scoped browser and function reads. Use it to return only rows owned by the current user.
|
|
7
|
+
|
|
8
|
+
## 0.38.150
|
|
9
|
+
|
|
10
|
+
- `somewhere typecheck` now checks the source and functions sent to deploy, using the platform's TypeScript version, generated types and checker settings. Use `somewhere typecheck --project` for the full local project check.
|
|
11
|
+
- A server read with an empty `columns` array now has the same row type as a read that omits `columns`.
|
|
12
|
+
|
|
3
13
|
## 0.38.149
|
|
4
14
|
|
|
5
15
|
- The local browser and Playwright test fixtures wait for an app's SDK session check after navigation.
|
package/README.md
CHANGED
|
@@ -71,8 +71,11 @@ when no compiler is installed in the project.
|
|
|
71
71
|
`init` installs React, the SDK, TypeScript, and editor types. For a local Vite server, use
|
|
72
72
|
`npm install -D --save-exact vite@7.2.2` for `somewhere dev`.
|
|
73
73
|
Save each journey you want re-checked after every deploy as `checks/<plain-name>.json`;
|
|
74
|
-
the platform runs them in its browser after each deploy
|
|
75
|
-
|
|
74
|
+
the platform runs them in its browser after each deploy, with nothing to install. Run `somewhere test`
|
|
75
|
+
for the latest result or add `--again` to start a fresh run. The last line is JSON
|
|
76
|
+
with `outcome` and `counts`. Exit codes are 0 for passed, 1 for a named failure,
|
|
77
|
+
and 2 for an incomplete check or cleanup. Warnings leave the exit status unchanged.
|
|
78
|
+
A Playwright script or spec runs locally with
|
|
76
79
|
`somewhere test <file>` after `npm install -D --save-exact @playwright/test@1.65.0`.
|
|
77
80
|
`init --template bare` is the same as `init --bare` and installs no dependencies.
|
|
78
81
|
|
|
@@ -110,7 +113,7 @@ For optional after-edit checking, explicitly run `somewhere hooks install --host
|
|
|
110
113
|
| `somewhere git status` | Show connected repo, commit, deploy status, logs link, and live URL |
|
|
111
114
|
| `somewhere git disconnect` | Stop push-to-deploy; the currently deployed site stays live |
|
|
112
115
|
| `somewhere pull <app>` | Download the live source of an existing app and link the folder before editing |
|
|
113
|
-
| `somewhere typecheck` | Checks
|
|
116
|
+
| `somewhere typecheck` | Checks deployable source with the platform's TypeScript version, generated types and checker settings. Install project dependencies first. Use `--project` for the full project check with your own TypeScript and tsconfig.json. |
|
|
114
117
|
| `somewhere logs` | Show recent logs |
|
|
115
118
|
| `somewhere logs --follow` | Stream logs in real-time |
|
|
116
119
|
| `somewhere logs --level error` | Filter by level |
|