@superforge/infra 0.6.0 → 1.0.0
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 +7 -6
- package/output/contract/index.js +1 -1
- package/output/index.js +1 -1
- package/output/version.d.ts +2 -2
- package/output/version.js +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -162,9 +162,9 @@ A schema here is made with the package's own zod: parse with it as it is,
|
|
|
162
162
|
and never put it inside a schema of the app's own, which may be another
|
|
163
163
|
zod's and then fails. Build the app's own from the constants instead.
|
|
164
164
|
|
|
165
|
-
Every name either entry exports is a promise:
|
|
166
|
-
|
|
167
|
-
|
|
165
|
+
Every name either entry exports is a promise: taking one away is a major.
|
|
166
|
+
So they export only what an app or Infra's server uses; the rest is the
|
|
167
|
+
package's own.
|
|
168
168
|
|
|
169
169
|
## When something goes wrong
|
|
170
170
|
|
|
@@ -223,9 +223,10 @@ CI signs in to npm with trusted publishing: npm trusts this repository's
|
|
|
223
223
|
after `main`'s, with its line in `CHANGELOG.md`.
|
|
224
224
|
|
|
225
225
|
Infra changes its API additively: it adds fields and calls, and never
|
|
226
|
-
renames or drops one
|
|
227
|
-
|
|
228
|
-
|
|
226
|
+
renames or drops one a release calls. When an answer has to change, Infra
|
|
227
|
+
keeps answering each release from 1.0.0 on as that release expects ("What
|
|
228
|
+
every call tells Infra"), so a release keeps working, and an app takes the
|
|
229
|
+
next when it wants what's in it.
|
|
229
230
|
|
|
230
231
|
A release reads what Infra adds without breaking: a field it doesn't know
|
|
231
232
|
is dropped, a 429's `limit` is read as any name, and a request's or a
|
package/output/contract/index.js
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
// ties itself to. Nothing here runs in Node alone, so a page can import it
|
|
5
5
|
// too. Infra's README has the calls.
|
|
6
6
|
//
|
|
7
|
-
// Every name here is a promise:
|
|
7
|
+
// Every name here is a promise: taking one away is a major.
|
|
8
8
|
// So a name is here only when an app or Infra's server needs it; the rest
|
|
9
9
|
// of contract/ is the package's own (all.ts). A schema here is made with
|
|
10
10
|
// the package's own zod: parse with it as it is, and never put it inside a
|
package/output/index.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
// Skylevel apps run on, as an app's server calls it. README.md has how an
|
|
3
3
|
// app uses it.
|
|
4
4
|
//
|
|
5
|
-
// Every name here is a promise:
|
|
5
|
+
// Every name here is a promise: taking one away is a major.
|
|
6
6
|
// So the package exports what an app calls, its constants and its types,
|
|
7
7
|
// and no zod schema: those are at `@superforge/infra/contract` alone
|
|
8
8
|
// (contract/index.ts), made with the package's own zod.
|
package/output/version.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/** The package's version, as package.json says it */
|
|
2
|
-
export declare const PACKAGE_VERSION = "0.
|
|
2
|
+
export declare const PACKAGE_VERSION = "1.0.0";
|
|
3
3
|
/** What it says: the package and its version, `@superforge/infra/<version>` */
|
|
4
|
-
export declare const CLIENT = "@superforge/infra/0.
|
|
4
|
+
export declare const CLIENT = "@superforge/infra/1.0.0";
|
package/output/version.js
CHANGED
|
@@ -5,6 +5,6 @@
|
|
|
5
5
|
// package away from its package.json; a test checks the two agree, so a
|
|
6
6
|
// release that bumps one and not the other fails `pnpm check`.
|
|
7
7
|
/** The package's version, as package.json says it */
|
|
8
|
-
export const PACKAGE_VERSION = "0.
|
|
8
|
+
export const PACKAGE_VERSION = "1.0.0";
|
|
9
9
|
/** What it says: the package and its version, `@superforge/infra/<version>` */
|
|
10
10
|
export const CLIENT = `@superforge/infra/${PACKAGE_VERSION}`;
|
package/package.json
CHANGED