dsh-auth-remote 0.3.2 → 0.3.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/CHANGELOG.md +16 -1
- package/CHANGELOG.zh-CN.md +16 -1
- package/CONTRIBUTING.md +1 -1
- package/CONTRIBUTING.zh-CN.md +1 -1
- package/README.md +53 -50
- package/README.zh-CN.md +53 -50
- package/dist/client.js +8 -0
- package/dist/client.js.map +2 -2
- package/dist/index.js +22 -17
- package/dist/index.js.map +2 -2
- package/dist/types/shared/dsh-support.d.ts.map +1 -1
- package/docs/deployment.md +28 -30
- package/docs/deployment.zh-CN.md +28 -30
- package/docs/development.md +43 -32
- package/docs/development.zh-CN.md +43 -32
- package/docs/legacy-compatibility.md +122 -79
- package/docs/legacy-compatibility.zh-CN.md +116 -73
- package/docs/releasing.md +13 -11
- package/docs/releasing.zh-CN.md +13 -11
- package/docs/reverse-proxy.md +2 -0
- package/docs/reverse-proxy.zh-CN.md +2 -0
- package/docs/support-history.md +68 -62
- package/docs/support-history.zh-CN.md +68 -62
- package/docs/support-policy.md +38 -7
- package/docs/support-policy.zh-CN.md +38 -7
- package/package.json +18 -15
package/dist/index.js
CHANGED
|
@@ -17,7 +17,7 @@ function packageManifest(packageName, anchor) {
|
|
|
17
17
|
const manifest = JSON.parse(readFileSync(path, "utf8"));
|
|
18
18
|
if (manifest.name !== packageName || !semver.satisfies(manifest.version, SUPPORTED_DSH_RANGE, { includePrerelease: true })) {
|
|
19
19
|
throw new Error(
|
|
20
|
-
`auth-remote: unsupported ${packageName} version ${manifest.version}; minimum DSH 0.2.1-alpha.3. Upgrade to DSH 0.2.2-alpha.
|
|
20
|
+
`auth-remote: unsupported ${packageName} version ${manifest.version}; minimum DSH 0.2.1-alpha.3. Upgrade to DSH 0.2.2-alpha.3; last supported plugin for older DSH: 0.2.0. See README.md and docs/support-history.md.`
|
|
21
21
|
);
|
|
22
22
|
}
|
|
23
23
|
return { path, manifest };
|
|
@@ -494,7 +494,7 @@ function listenerPublicUrl(host, port, protocol) {
|
|
|
494
494
|
function assertRuntimeVersion(version) {
|
|
495
495
|
if (!semver2.satisfies(version, SUPPORTED_DSH_RANGE, { includePrerelease: true }))
|
|
496
496
|
throw new Error(
|
|
497
|
-
`auth-remote: unsupported DSH version ${version}; minimum DSH 0.2.1-alpha.3. Upgrade to DSH 0.2.2-alpha.
|
|
497
|
+
`auth-remote: unsupported DSH version ${version}; minimum DSH 0.2.1-alpha.3. Upgrade to DSH 0.2.2-alpha.3; last supported plugin for older DSH: 0.2.0. See README.md and docs/support-history.md.`
|
|
498
498
|
);
|
|
499
499
|
}
|
|
500
500
|
function validateListenerConfig(config, native = NativeWebServer) {
|
|
@@ -2959,7 +2959,7 @@ function legacy(version, windowDays, eligibleRetirement) {
|
|
|
2959
2959
|
legacySince: "2026-10-28",
|
|
2960
2960
|
windowDays,
|
|
2961
2961
|
eligibleRetirement,
|
|
2962
|
-
migrationTarget: "0.2.2-alpha.
|
|
2962
|
+
migrationTarget: "0.2.2-alpha.3"
|
|
2963
2963
|
};
|
|
2964
2964
|
}
|
|
2965
2965
|
var LEGACY_DSH_RELEASES = [
|
|
@@ -2968,20 +2968,25 @@ var LEGACY_DSH_RELEASES = [
|
|
|
2968
2968
|
legacy("0.2.1-alpha.5", 14, "2026-11-11")
|
|
2969
2969
|
];
|
|
2970
2970
|
var RETIRED_DSH_RELEASES = [
|
|
2971
|
-
"0.1.7-rc.1",
|
|
2972
|
-
|
|
2973
|
-
|
|
2974
|
-
|
|
2975
|
-
|
|
2976
|
-
|
|
2977
|
-
|
|
2978
|
-
|
|
2979
|
-
|
|
2980
|
-
|
|
2981
|
-
|
|
2982
|
-
|
|
2983
|
-
|
|
2984
|
-
|
|
2971
|
+
...["0.1.7-rc.1", "0.1.7-rc.2", "0.2.0-rc.1", "0.2.0-rc.2", "0.2.1-alpha.1", "0.2.1-alpha.2"].map(
|
|
2972
|
+
(version) => ({
|
|
2973
|
+
state: "retired",
|
|
2974
|
+
version,
|
|
2975
|
+
retiredOn: "2026-10-28",
|
|
2976
|
+
effectivePlugin: "0.3.1",
|
|
2977
|
+
lastSupportedPlugin: "0.2.0",
|
|
2978
|
+
migrationTarget: "0.2.2-alpha.3"
|
|
2979
|
+
})
|
|
2980
|
+
),
|
|
2981
|
+
{
|
|
2982
|
+
state: "retired",
|
|
2983
|
+
version: "0.2.2-alpha.2",
|
|
2984
|
+
retiredOn: "2026-11-05",
|
|
2985
|
+
effectivePlugin: "0.3.4",
|
|
2986
|
+
lastSupportedPlugin: "0.3.3",
|
|
2987
|
+
migrationTarget: "0.2.2-alpha.3"
|
|
2988
|
+
}
|
|
2989
|
+
];
|
|
2985
2990
|
var lifecycle = [...LEGACY_DSH_RELEASES, ...RETIRED_DSH_RELEASES];
|
|
2986
2991
|
function classifyDshSupport(version, declared, records = lifecycle) {
|
|
2987
2992
|
if (declared.has(version)) {
|