Commit a85c35e
committed
Address review: switch browser subtrees to @moss-dev/moss-web
@HarshaNalluru and @yatharthk2 pointed out that the correct npm package
for browser / WebAssembly usage is `@moss-dev/moss-web` (not the Node
SDK `@moss-dev/moss`). Applied the correction in the two subtrees that
run in a browser:
- apps/next-js: package.json dep, actions.ts import, actions.test.ts
vi.mock, README install command -> @moss-dev/moss-web. Regenerated
package-lock.json. Also fixed a pre-existing type mismatch now
surfaced by the new SDK: `results.timeTakenInMs` -> `timeTakenMs`
(the new SearchResult shape).
- packages/vitepress-plugin-moss: package.json dep, Search.vue (static
+ dynamic imports), README dependency-split prose ->
@moss-dev/moss-web. Regenerated pnpm-lock.yaml.
- packages/vitepress-plugin-moss/demo-site getting-started.md and
index.md JS install commands and imports -> @moss-dev/moss-web.
- Generated TypeDoc reference docs under
packages/vitepress-plugin-moss/demo-site/documentation/docs/reference/:
- js/*: renamed @moss-dev/moss -> @moss-dev/moss-web and dropped the
inherited v1.0.0-beta.7 version suffix down to v1.0.0 (moss-web has
no betas published)
- python/*: dropped the inherited v1.0.0b16 -> v1.0.0 (moss@1.0.0 is
the only version on PyPI; same flag from @HarshaNalluru on
reference/python/classes/MossClient.md)
Verification:
- `npm install` + `npx tsc --noEmit` on apps/next-js: clean
- `pnpm install --lockfile-only` on packages/vitepress-plugin-moss:
clean; lock now has 3 @moss-dev/moss-web entries and zero non-hyphen
@moss-dev/moss entries
All other @moss-dev/moss references in the repo (SDK source, Node demo
apps like moss-bun, docker/javascript, the Vercel SDK, test fixtures,
moss-live-labs TypeScript examples, root README code snippet, etc.)
are Node contexts and stay on @moss-dev/moss — those are not browser
usage.1 parent ddd84ef commit a85c35e
50 files changed
Lines changed: 341 additions & 221 deletions
File tree
- apps/next-js
- app
- packages/vitepress-plugin-moss
- demo-site/documentation/docs
- reference
- js
- classes
- interfaces
- type-aliases
- python
- classes
- interfaces
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
50 | | - | |
| 50 | + | |
51 | 51 | | |
52 | 52 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
| 6 | + | |
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
36 | | - | |
| 36 | + | |
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
| 14 | + | |
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
30 | | - | |
| 30 | + | |
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
| |||
288 | 288 | | |
289 | 289 | | |
290 | 290 | | |
291 | | - | |
| 291 | + | |
292 | 292 | | |
293 | 293 | | |
294 | 294 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
| 6 | + | |
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| |||
292 | 292 | | |
293 | 293 | | |
294 | 294 | | |
295 | | - | |
| 295 | + | |
296 | 296 | | |
297 | 297 | | |
298 | 298 | | |
| |||
0 commit comments