@crowdedkingdoms/crowdyjs 8.4.3 → 8.4.4
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 +10 -18
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -16,34 +16,26 @@ CrowdyJS v4 targets browsers by default and uses native `fetch`, `WebSocket`, `c
|
|
|
16
16
|
|
|
17
17
|
## Standalone builds and schema refresh
|
|
18
18
|
|
|
19
|
-
CrowdyJS is a standalone public package
|
|
20
|
-
|
|
21
|
-
|
|
19
|
+
CrowdyJS is a standalone public package: a clean clone builds with
|
|
20
|
+
`npm install && npm run build` using the schema artifacts committed to this
|
|
21
|
+
repo — no other repositories and no network access required:
|
|
22
22
|
|
|
23
23
|
- `schema.gql` — merged Management API + Game API SDL.
|
|
24
24
|
- `src/generated/graphql.ts` — generated TypeScript operation types.
|
|
25
25
|
|
|
26
|
-
Schema refresh is explicit
|
|
26
|
+
Schema refresh (maintainers) is explicit, from the published SDLs
|
|
27
|
+
([management-api.graphql](https://docs.crowdedkingdoms.com/schema/management-api.graphql),
|
|
28
|
+
[game-api.graphql](https://docs.crowdedkingdoms.com/schema/game-api.graphql)):
|
|
27
29
|
|
|
28
30
|
```bash
|
|
29
|
-
# Refresh from the published production SDLs.
|
|
30
31
|
npm run schema:sync:prod
|
|
31
32
|
npm run codegen
|
|
32
|
-
|
|
33
|
-
# Or, inside the CKS wrapper repo, refresh from local API checkouts.
|
|
34
|
-
npm run schema:sync:local
|
|
35
|
-
npm run codegen
|
|
36
|
-
|
|
37
|
-
# Or use exact file/URL sources.
|
|
38
|
-
npm run schema:sync:paths -- \
|
|
39
|
-
--management ../cks-management-api/schema.gql \
|
|
40
|
-
--game ../cks-game-api/schema.gql
|
|
41
|
-
npm run codegen
|
|
42
33
|
```
|
|
43
34
|
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
35
|
+
(`npm run schema:sync:paths -- --management <file-or-url> --game <file-or-url>`
|
|
36
|
+
accepts explicit sources.) Commit `schema.gql` and `src/generated/graphql.ts`
|
|
37
|
+
together whenever the public GraphQL surface changes; `npm run check:schema`
|
|
38
|
+
detects drift in CI/release work.
|
|
47
39
|
|
|
48
40
|
## Quick start
|
|
49
41
|
|
package/dist/index.d.ts
CHANGED
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
* or internal tooling, never an untrusted browser.
|
|
46
46
|
*/
|
|
47
47
|
/** The published package version. Mirrors `package.json`. */
|
|
48
|
-
export declare const VERSION = "8.4.
|
|
48
|
+
export declare const VERSION = "8.4.4";
|
|
49
49
|
export { LbCookieStore } from './lb-cookie-store.js';
|
|
50
50
|
export { CrowdyClient, createCrowdyClient, type CrowdyClientConfig, } from './crowdy-client.js';
|
|
51
51
|
export { BrowserLocalStorageTokenStore, SessionStore, type SessionListener, type TokenStore, } from './session.js';
|
package/dist/index.js
CHANGED
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
* or internal tooling, never an untrusted browser.
|
|
46
46
|
*/
|
|
47
47
|
/** The published package version. Mirrors `package.json`. */
|
|
48
|
-
export const VERSION = '8.4.
|
|
48
|
+
export const VERSION = '8.4.4';
|
|
49
49
|
export { LbCookieStore } from './lb-cookie-store.js';
|
|
50
50
|
export { CrowdyClient, createCrowdyClient, } from './crowdy-client.js';
|
|
51
51
|
export { BrowserLocalStorageTokenStore, SessionStore, } from './session.js';
|