dsh-auth-remote 0.3.4 → 0.3.6
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 -0
- package/CHANGELOG.zh-CN.md +16 -0
- package/CONTRIBUTING.md +2 -2
- package/CONTRIBUTING.zh-CN.md +2 -2
- package/README.md +19 -18
- package/README.zh-CN.md +19 -18
- package/dist/client.js +106 -16
- package/dist/client.js.map +3 -3
- package/dist/index.js +17 -20
- package/dist/index.js.map +2 -2
- package/dist/types/shared/dsh-support.d.ts +3 -0
- package/dist/types/shared/dsh-support.d.ts.map +1 -1
- package/docs/deployment.md +8 -6
- package/docs/deployment.zh-CN.md +8 -6
- package/docs/development.md +57 -50
- package/docs/development.zh-CN.md +57 -50
- package/docs/legacy-compatibility.md +140 -100
- package/docs/legacy-compatibility.zh-CN.md +132 -92
- package/docs/releasing.md +27 -14
- package/docs/releasing.zh-CN.md +27 -14
- package/docs/reverse-proxy.md +1 -1
- package/docs/reverse-proxy.zh-CN.md +1 -1
- package/docs/support-history.md +69 -65
- package/docs/support-history.zh-CN.md +52 -48
- package/docs/support-policy.md +24 -20
- package/docs/support-policy.zh-CN.md +25 -19
- package/package.json +17 -18
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-
|
|
20
|
+
`auth-remote: unsupported ${packageName} version ${manifest.version}; minimum DSH 0.2.1-alpha.3. Upgrade to DSH 0.2.2-rc.2; 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-
|
|
497
|
+
`auth-remote: unsupported DSH version ${version}; minimum DSH 0.2.1-alpha.3. Upgrade to DSH 0.2.2-rc.2; 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) {
|
|
@@ -2952,21 +2952,7 @@ var ManualAccountLogin = class {
|
|
|
2952
2952
|
};
|
|
2953
2953
|
|
|
2954
2954
|
// src/shared/dsh-support.ts
|
|
2955
|
-
|
|
2956
|
-
return {
|
|
2957
|
-
state: "legacy",
|
|
2958
|
-
version,
|
|
2959
|
-
legacySince: "2026-10-28",
|
|
2960
|
-
windowDays,
|
|
2961
|
-
eligibleRetirement,
|
|
2962
|
-
migrationTarget: "0.2.2-alpha.3"
|
|
2963
|
-
};
|
|
2964
|
-
}
|
|
2965
|
-
var LEGACY_DSH_RELEASES = [
|
|
2966
|
-
legacy("0.2.1-alpha.3", 14, "2026-11-11"),
|
|
2967
|
-
legacy("0.2.1-alpha.4", 14, "2026-11-11"),
|
|
2968
|
-
legacy("0.2.1-alpha.5", 14, "2026-11-11")
|
|
2969
|
-
];
|
|
2955
|
+
var LEGACY_DSH_RELEASES = [];
|
|
2970
2956
|
var RETIRED_DSH_RELEASES = [
|
|
2971
2957
|
...["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
2958
|
(version) => ({
|
|
@@ -2975,7 +2961,7 @@ var RETIRED_DSH_RELEASES = [
|
|
|
2975
2961
|
retiredOn: "2026-10-28",
|
|
2976
2962
|
effectivePlugin: "0.3.1",
|
|
2977
2963
|
lastSupportedPlugin: "0.2.0",
|
|
2978
|
-
migrationTarget: "0.2.2-
|
|
2964
|
+
migrationTarget: "0.2.2-rc.2"
|
|
2979
2965
|
})
|
|
2980
2966
|
),
|
|
2981
2967
|
{
|
|
@@ -2984,8 +2970,19 @@ var RETIRED_DSH_RELEASES = [
|
|
|
2984
2970
|
retiredOn: "2026-11-05",
|
|
2985
2971
|
effectivePlugin: "0.3.4",
|
|
2986
2972
|
lastSupportedPlugin: "0.3.3",
|
|
2987
|
-
migrationTarget: "0.2.2-
|
|
2988
|
-
}
|
|
2973
|
+
migrationTarget: "0.2.2-rc.2"
|
|
2974
|
+
},
|
|
2975
|
+
...["0.2.1-alpha.3", "0.2.1-alpha.4", "0.2.1-alpha.5"].map((version) => ({
|
|
2976
|
+
state: "retired",
|
|
2977
|
+
version,
|
|
2978
|
+
legacySince: "2026-10-28",
|
|
2979
|
+
windowDays: 14,
|
|
2980
|
+
eligibleRetirement: "2026-11-11",
|
|
2981
|
+
retiredOn: "2026-11-13",
|
|
2982
|
+
effectivePlugin: "0.3.6",
|
|
2983
|
+
lastSupportedPlugin: "0.3.5",
|
|
2984
|
+
migrationTarget: "0.2.2-rc.2"
|
|
2985
|
+
}))
|
|
2989
2986
|
];
|
|
2990
2987
|
var lifecycle = [...LEGACY_DSH_RELEASES, ...RETIRED_DSH_RELEASES];
|
|
2991
2988
|
function classifyDshSupport(version, declared, records = lifecycle) {
|