@wolfstar/http-framework 6.2.0-next-20261006112342 → 6.2.2-next-20261007120201
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 +5 -2
- package/dist/esm/index.js +10 -10
- package/package.json +5 -5
package/README.md
CHANGED
|
@@ -514,7 +514,7 @@ into the project's own `vite.config.*`, the way `vite: {}` in a Nuxt config is.
|
|
|
514
514
|
|
|
515
515
|
### Compatibility version
|
|
516
516
|
|
|
517
|
-
`future.compatibilityVersion` selects the build-default generation. Version
|
|
517
|
+
`future.compatibilityVersion` selects the build-default generation. Version 6 is the default; versions 5 and 4 remain
|
|
518
518
|
supported. Version 3 is **end-of-life**: it still works for projects that have a standalone `tsdown.config.*`, but
|
|
519
519
|
every command prints a `COMPATIBILITY_VERSION_EOL` warning, and it is removed in the next major.
|
|
520
520
|
|
|
@@ -530,7 +530,8 @@ export default defineConfig({
|
|
|
530
530
|
| ------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
531
531
|
| `3` (EOL) | Legacy behaviour: a `tsdown.config.*` drives the build, auto imports off unless asked for |
|
|
532
532
|
| `4` | `tsdown` configured from `stars.config` alone, auto imports on and wired in, `'auto'` picks `tsdown` for TypeScript; [`env`](#environment-env) is opt-in |
|
|
533
|
-
| `5`
|
|
533
|
+
| `5` | Everything in `4`, plus [`env`](#environment-env) registered automatically when the project depends on `@wolfstar/env-utilities` |
|
|
534
|
+
| `6` (default) | Everything in `5`, plus the generated TypeScript configuration split in two: `.stars/tsconfig.app.json` and `.stars/tsconfig.node.json` |
|
|
534
535
|
|
|
535
536
|
From version 4 on:
|
|
536
537
|
|
|
@@ -662,6 +663,8 @@ const config = await loadStarsConfig({ cwd: process.cwd() });
|
|
|
662
663
|
console.log(config.entry, config.build.output);
|
|
663
664
|
```
|
|
664
665
|
|
|
666
|
+
`loadStarsConfig` only validates what the schema owns. A top-level key that is not built in is kept as `config.moduleOptions` (it may be the options of a module, `meta.configKey`), not rejected, so a misspelled key is reported by the `stars` commands once the modules are set up, not by `loadStarsConfig`. A tool that loads the configuration on its own and wants that check calls `assertModuleOptionsClaimed(config, claimedKeys)` from `@wolfstar/schema` (also exported by `@wolfstar/http-framework/config`) with the `meta.configKey`s of the modules it installed, or `[]` when it installs none.
|
|
667
|
+
|
|
665
668
|
Invalid options raise a `ConfigError` with a stable `code`, the offending option `path`, the `file` it came from, and
|
|
666
669
|
an actionable `hint`. See the [`@wolfstar/cli` README](../cli#configuration) for the full option reference and how the
|
|
667
670
|
`stars` commands (`dev`, `build`, `info`, `codegen`, `prepare`, `commands`) use it.
|
package/dist/esm/index.js
CHANGED
|
@@ -440,7 +440,7 @@ let HttpCodes = /* @__PURE__ */ function(HttpCodes) {
|
|
|
440
440
|
}({});
|
|
441
441
|
|
|
442
442
|
//#endregion
|
|
443
|
-
//#region \0@oxc-project+runtime@0.
|
|
443
|
+
//#region \0@oxc-project+runtime@0.152.0/helpers/esm/typeof.js
|
|
444
444
|
function _typeof(o) {
|
|
445
445
|
"@babel/helpers - typeof";
|
|
446
446
|
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o) {
|
|
@@ -451,7 +451,7 @@ function _typeof(o) {
|
|
|
451
451
|
}
|
|
452
452
|
|
|
453
453
|
//#endregion
|
|
454
|
-
//#region \0@oxc-project+runtime@0.
|
|
454
|
+
//#region \0@oxc-project+runtime@0.152.0/helpers/esm/toPrimitive.js
|
|
455
455
|
function toPrimitive(t, r) {
|
|
456
456
|
if ("object" != _typeof(t) || !t) return t;
|
|
457
457
|
var e = t[Symbol.toPrimitive];
|
|
@@ -464,14 +464,14 @@ function toPrimitive(t, r) {
|
|
|
464
464
|
}
|
|
465
465
|
|
|
466
466
|
//#endregion
|
|
467
|
-
//#region \0@oxc-project+runtime@0.
|
|
467
|
+
//#region \0@oxc-project+runtime@0.152.0/helpers/esm/toPropertyKey.js
|
|
468
468
|
function toPropertyKey(t) {
|
|
469
469
|
var i = toPrimitive(t, "string");
|
|
470
470
|
return "symbol" == _typeof(i) ? i : i + "";
|
|
471
471
|
}
|
|
472
472
|
|
|
473
473
|
//#endregion
|
|
474
|
-
//#region \0@oxc-project+runtime@0.
|
|
474
|
+
//#region \0@oxc-project+runtime@0.152.0/helpers/esm/defineProperty.js
|
|
475
475
|
function _defineProperty(e, r, t) {
|
|
476
476
|
return (r = toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
|
|
477
477
|
value: t,
|
|
@@ -482,32 +482,32 @@ function _defineProperty(e, r, t) {
|
|
|
482
482
|
}
|
|
483
483
|
|
|
484
484
|
//#endregion
|
|
485
|
-
//#region \0@oxc-project+runtime@0.
|
|
485
|
+
//#region \0@oxc-project+runtime@0.152.0/helpers/esm/checkPrivateRedeclaration.js
|
|
486
486
|
function _checkPrivateRedeclaration(e, t) {
|
|
487
487
|
if (t.has(e)) throw new TypeError("Cannot initialize the same private elements twice on an object");
|
|
488
488
|
}
|
|
489
489
|
|
|
490
490
|
//#endregion
|
|
491
|
-
//#region \0@oxc-project+runtime@0.
|
|
491
|
+
//#region \0@oxc-project+runtime@0.152.0/helpers/esm/classPrivateFieldInitSpec.js
|
|
492
492
|
function _classPrivateFieldInitSpec(e, t, a) {
|
|
493
493
|
_checkPrivateRedeclaration(e, t), t.set(e, a);
|
|
494
494
|
}
|
|
495
495
|
|
|
496
496
|
//#endregion
|
|
497
|
-
//#region \0@oxc-project+runtime@0.
|
|
497
|
+
//#region \0@oxc-project+runtime@0.152.0/helpers/esm/assertClassBrand.js
|
|
498
498
|
function _assertClassBrand(e, t, n) {
|
|
499
499
|
if ("function" == typeof e ? e === t : e.has(t)) return arguments.length < 3 ? t : n;
|
|
500
500
|
throw new TypeError("Private element is not present on this object");
|
|
501
501
|
}
|
|
502
502
|
|
|
503
503
|
//#endregion
|
|
504
|
-
//#region \0@oxc-project+runtime@0.
|
|
504
|
+
//#region \0@oxc-project+runtime@0.152.0/helpers/esm/classPrivateFieldGet2.js
|
|
505
505
|
function _classPrivateFieldGet2(s, a) {
|
|
506
506
|
return s.get(_assertClassBrand(s, a));
|
|
507
507
|
}
|
|
508
508
|
|
|
509
509
|
//#endregion
|
|
510
|
-
//#region \0@oxc-project+runtime@0.
|
|
510
|
+
//#region \0@oxc-project+runtime@0.152.0/helpers/esm/classPrivateFieldSet2.js
|
|
511
511
|
function _classPrivateFieldSet2(s, a, r) {
|
|
512
512
|
return s.set(_assertClassBrand(s, a), r), r;
|
|
513
513
|
}
|
|
@@ -716,7 +716,7 @@ const preLoad = Symbol("HttpFrameworkPluginsPreLoad");
|
|
|
716
716
|
const postListen = Symbol("HttpFrameworkPluginsPostListen");
|
|
717
717
|
|
|
718
718
|
//#endregion
|
|
719
|
-
//#region \0@oxc-project+runtime@0.
|
|
719
|
+
//#region \0@oxc-project+runtime@0.152.0/helpers/esm/classPrivateMethodInitSpec.js
|
|
720
720
|
function _classPrivateMethodInitSpec(e, a) {
|
|
721
721
|
_checkPrivateRedeclaration(e, a), a.add(e);
|
|
722
722
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wolfstar/http-framework",
|
|
3
|
-
"version": "6.2.
|
|
3
|
+
"version": "6.2.2-next-20261007120201",
|
|
4
4
|
"description": "The framework for Star Network's HTTP-only bots",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"api",
|
|
@@ -77,19 +77,19 @@
|
|
|
77
77
|
"@sapphire/result": "^2.8.0",
|
|
78
78
|
"@sapphire/utilities": "^3.18.2",
|
|
79
79
|
"@vladfrangu/async_event_emitter": "^2.4.7",
|
|
80
|
-
"@wolfstar/cli": "^2.
|
|
81
|
-
"@wolfstar/schema": "^0.
|
|
80
|
+
"@wolfstar/cli": "^2.6.0-next-20261007120201",
|
|
81
|
+
"@wolfstar/schema": "^0.9.0-next-20261007120201",
|
|
82
82
|
"chokidar": "^5.0.0",
|
|
83
83
|
"discord-api-types": "^0.38.8",
|
|
84
84
|
"mlly": "^1.8.2",
|
|
85
85
|
"unimport": "^7.0.2"
|
|
86
86
|
},
|
|
87
87
|
"devDependencies": {
|
|
88
|
-
"@vitest/coverage-v8": "^5.0.
|
|
88
|
+
"@vitest/coverage-v8": "^5.0.3",
|
|
89
89
|
"golar": "^0.1.10",
|
|
90
90
|
"tsdown": "^0.23.0",
|
|
91
91
|
"typescript": "~7.0.2",
|
|
92
|
-
"vitest": "^5.0.
|
|
92
|
+
"vitest": "^5.0.3"
|
|
93
93
|
},
|
|
94
94
|
"engines": {
|
|
95
95
|
"node": ">=20"
|