keycloakify 11.2.8 → 11.2.9-rc.1
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/bin/31.index.js +17 -8
- package/bin/573.index.js +2 -2
- package/bin/shared/KeycloakVersionRange.d.ts +1 -1
- package/bin/shared/buildContext.js.map +1 -1
- package/package.json +2 -1
- package/src/bin/keycloakify/buildJars/getKeycloakVersionRangeForJar.ts +2 -2
- package/src/bin/keycloakify/generateFtl/kcContextDeclarationTemplate.ftl +3 -0
- package/src/bin/shared/KeycloakVersionRange.ts +1 -1
- package/src/bin/shared/buildContext.ts +28 -8
- package/src/bin/start-keycloak/myrealm-realm-26.json +2400 -0
- package/vite-plugin/index.js +15 -8
package/vite-plugin/index.js
CHANGED
@@ -229,6 +229,7 @@ function ensureSingleOrNone(arg0) {
|
|
229
229
|
|
230
230
|
|
231
231
|
|
232
|
+
|
232
233
|
(0,assert/* assert */.h)();
|
233
234
|
function getBuildContext(params) {
|
234
235
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
|
@@ -334,8 +335,8 @@ function getBuildContext(params) {
|
|
334
335
|
lib.z.literal("none")
|
335
336
|
]),
|
336
337
|
keycloakVersionTargets: lib.z.object({
|
337
|
-
"
|
338
|
-
"
|
338
|
+
"22-to-25": lib.z.union([lib.z.boolean(), lib.z.string()]),
|
339
|
+
"all-other-versions": lib.z.union([lib.z.boolean(), lib.z.string()])
|
339
340
|
})
|
340
341
|
.optional()
|
341
342
|
});
|
@@ -667,10 +668,11 @@ function getBuildContext(params) {
|
|
667
668
|
}
|
668
669
|
else {
|
669
670
|
const keycloakVersionRange = (() => {
|
670
|
-
if (buildForKeycloakMajorVersionNumber <= 21
|
671
|
-
|
671
|
+
if (buildForKeycloakMajorVersionNumber <= 21 ||
|
672
|
+
buildForKeycloakMajorVersionNumber >= 26) {
|
673
|
+
return "all-other-versions";
|
672
674
|
}
|
673
|
-
return "22-
|
675
|
+
return "22-to-25";
|
674
676
|
})();
|
675
677
|
(0,assert/* assert */.h)();
|
676
678
|
return keycloakVersionRange;
|
@@ -679,6 +681,7 @@ function getBuildContext(params) {
|
|
679
681
|
const jarFileBasename = (() => {
|
680
682
|
use_custom_jar_basename: {
|
681
683
|
const { keycloakVersionTargets } = buildOptions;
|
684
|
+
(0,assert/* assert */.h)(is(keycloakVersionTargets));
|
682
685
|
if (keycloakVersionTargets === undefined) {
|
683
686
|
break use_custom_jar_basename;
|
684
687
|
}
|
@@ -720,8 +723,8 @@ function getBuildContext(params) {
|
|
720
723
|
}
|
721
724
|
else {
|
722
725
|
for (const keycloakVersionRange of [
|
723
|
-
"
|
724
|
-
"
|
726
|
+
"22-to-25",
|
727
|
+
"all-other-versions"
|
725
728
|
]) {
|
726
729
|
(0,assert/* assert */.h)(true);
|
727
730
|
jarTargets.push({
|
@@ -736,7 +739,11 @@ function getBuildContext(params) {
|
|
736
739
|
return jarTargets_default;
|
737
740
|
}
|
738
741
|
const jarTargets = [];
|
739
|
-
for (const [keycloakVersionRange, jarNameOrBoolean] of objectEntries(
|
742
|
+
for (const [keycloakVersionRange, jarNameOrBoolean] of objectEntries((() => {
|
743
|
+
const { keycloakVersionTargets } = buildOptions;
|
744
|
+
(0,assert/* assert */.h)(is(keycloakVersionTargets));
|
745
|
+
return keycloakVersionTargets;
|
746
|
+
})())) {
|
740
747
|
if (jarNameOrBoolean === false) {
|
741
748
|
continue;
|
742
749
|
}
|