@backstage/version-bridge 1.0.8 → 1.0.9-next.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/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @backstage/version-bridge
2
2
 
3
+ ## 1.0.9-next.0
4
+
5
+ ### Patch Changes
6
+
7
+ - 836127c: Updated dependency `@testing-library/react` to `^16.0.0`.
8
+
3
9
  ## 1.0.8
4
10
 
5
11
  ### Patch Changes
package/dist/index.esm.js CHANGED
@@ -1,65 +1,4 @@
1
- import { createContext, useContext } from 'react';
2
-
3
- function getGlobalObject() {
4
- if (typeof window !== "undefined" && window.Math === Math) {
5
- return window;
6
- }
7
- if (typeof self !== "undefined" && self.Math === Math) {
8
- return self;
9
- }
10
- return Function("return this")();
11
- }
12
- const globalObject = getGlobalObject();
13
- const makeKey = (id) => `__@backstage/${id}__`;
14
- function getOrCreateGlobalSingleton(id, supplier) {
15
- const key = makeKey(id);
16
- let value = globalObject[key];
17
- if (value) {
18
- return value;
19
- }
20
- value = supplier();
21
- globalObject[key] = value;
22
- return value;
23
- }
24
-
25
- function createVersionedValueMap(versions) {
26
- Object.freeze(versions);
27
- const versionedValue = {
28
- atVersion(version) {
29
- return versions[version];
30
- }
31
- };
32
- Object.defineProperty(versionedValue, "$map", {
33
- configurable: true,
34
- enumerable: true,
35
- get() {
36
- return versions;
37
- }
38
- });
39
- return versionedValue;
40
- }
41
-
42
- function createVersionedContext(key) {
43
- return getOrCreateGlobalSingleton(
44
- key,
45
- () => createContext(void 0)
46
- );
47
- }
48
- function useVersionedContext(key) {
49
- return useContext(createVersionedContext(key));
50
- }
51
- function createVersionedContextForTesting(key) {
52
- return {
53
- set(versions) {
54
- globalThis[`__@backstage/${key}__`] = createContext(
55
- createVersionedValueMap(versions)
56
- );
57
- },
58
- reset() {
59
- delete globalThis[`__@backstage/${key}__`];
60
- }
61
- };
62
- }
63
-
64
- export { createVersionedContext, createVersionedContextForTesting, createVersionedValueMap, getOrCreateGlobalSingleton, useVersionedContext };
1
+ export { getOrCreateGlobalSingleton } from './lib/globalObject.esm.js';
2
+ export { createVersionedContext, createVersionedContextForTesting, useVersionedContext } from './lib/VersionedContext.esm.js';
3
+ export { createVersionedValueMap } from './lib/VersionedValue.esm.js';
65
4
  //# sourceMappingURL=index.esm.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.esm.js","sources":["../src/lib/globalObject.ts","../src/lib/VersionedValue.ts","../src/lib/VersionedContext.ts"],"sourcesContent":["/*\n * Copyright 2021 The Backstage Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n// https://github.com/zloirock/core-js/issues/86#issuecomment-115759028\nfunction getGlobalObject() {\n if (typeof window !== 'undefined' && window.Math === Math) {\n return window;\n }\n // eslint-disable-next-line no-restricted-globals\n if (typeof self !== 'undefined' && self.Math === Math) {\n // eslint-disable-next-line no-restricted-globals\n return self;\n }\n // eslint-disable-next-line no-new-func\n return Function('return this')();\n}\n\nconst globalObject = getGlobalObject();\n\nconst makeKey = (id: string) => `__@backstage/${id}__`;\n\n/**\n * Serializes access to a global singleton value, with the first caller creating the value.\n *\n * @public\n */\nexport function getOrCreateGlobalSingleton<T>(\n id: string,\n supplier: () => T,\n): T {\n const key = makeKey(id);\n\n let value = globalObject[key];\n if (value) {\n return value;\n }\n\n value = supplier();\n globalObject[key] = value;\n return value;\n}\n","/*\n * Copyright 2021 The Backstage Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n/**\n * The versioned value interface is a container for a set of values that\n * can be looked up by version. It is intended to be used as a container\n * for values that can be versioned independently of package versions.\n *\n * @public\n */\nexport type VersionedValue<Versions extends { [version: number]: unknown }> = {\n atVersion<Version extends keyof Versions>(\n version: Version,\n ): Versions[Version] | undefined;\n};\n\n/**\n * Creates a container for a map of versioned values that implements VersionedValue.\n *\n * @public\n */\nexport function createVersionedValueMap<\n Versions extends { [version: number]: unknown },\n>(versions: Versions): VersionedValue<Versions> {\n Object.freeze(versions);\n const versionedValue: VersionedValue<Versions> = {\n atVersion(version) {\n return versions[version];\n },\n };\n Object.defineProperty(versionedValue, '$map', {\n configurable: true,\n enumerable: true,\n get() {\n return versions;\n },\n });\n return versionedValue;\n}\n","/*\n * Copyright 2021 The Backstage Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { createContext, useContext, Context } from 'react';\nimport { getOrCreateGlobalSingleton } from './globalObject';\nimport { createVersionedValueMap, VersionedValue } from './VersionedValue';\n\n/**\n * Get the existing or create a new versioned React context that's\n * stored inside a global singleton.\n *\n * @param key - A key that uniquely identifies the context.\n * @public\n * @example\n *\n * ```ts\n * const MyContext = createVersionedContext<{ 1: string }>('my-context');\n *\n * const MyContextProvider = ({children}) => (\n * <MyContext.Provider value={createVersionedValueMap({ 1: 'value-for-version-1' })}>\n * {children}\n * <MyContext.Provider>\n * )\n * ```\n */\nexport function createVersionedContext<\n Versions extends { [version in number]: unknown },\n>(key: string): Context<VersionedValue<Versions> | undefined> {\n return getOrCreateGlobalSingleton(key, () =>\n createContext<VersionedValue<Versions> | undefined>(undefined),\n );\n}\n\n/**\n * A hook that simplifies the consumption of a versioned contexts that's\n * stored inside a global singleton.\n *\n * @param key - A key that uniquely identifies the context.\n * @public\n * @example\n *\n * ```ts\n * const versionedHolder = useVersionedContext<{ 1: string }>('my-context');\n *\n * if (!versionedHolder) {\n * throw new Error('My context is not available!')\n * }\n *\n * const myValue = versionedHolder.atVersion(1);\n *\n * // ...\n * ```\n */\nexport function useVersionedContext<\n Versions extends { [version in number]: unknown },\n>(key: string): VersionedValue<Versions> | undefined {\n return useContext(createVersionedContext<Versions>(key));\n}\n\n/**\n * Creates a helper for writing tests towards multiple different\n * combinations of versions provided from a context.\n *\n * @param key - A key that uniquely identifies the context.\n * @public\n * @example\n *\n * ```ts\n * const context = createVersionedContextForTesting('my-context');\n *\n * afterEach(() => {\n * context.reset();\n * });\n *\n * it('should work when provided with version 1', () => {\n * context.set({1: 'value-for-version-1'})\n *\n * // ...\n * })\n * ```\n */\nexport function createVersionedContextForTesting(key: string) {\n return {\n set(versions: { [version in number]: unknown }) {\n (globalThis as any)[`__@backstage/${key}__`] = createContext(\n createVersionedValueMap(versions),\n );\n },\n reset() {\n delete (globalThis as any)[`__@backstage/${key}__`];\n },\n };\n}\n"],"names":[],"mappings":";;AAiBA,SAAS,eAAkB,GAAA;AACzB,EAAA,IAAI,OAAO,MAAA,KAAW,WAAe,IAAA,MAAA,CAAO,SAAS,IAAM,EAAA;AACzD,IAAO,OAAA,MAAA,CAAA;AAAA,GACT;AAEA,EAAA,IAAI,OAAO,IAAA,KAAS,WAAe,IAAA,IAAA,CAAK,SAAS,IAAM,EAAA;AAErD,IAAO,OAAA,IAAA,CAAA;AAAA,GACT;AAEA,EAAO,OAAA,QAAA,CAAS,aAAa,CAAE,EAAA,CAAA;AACjC,CAAA;AAEA,MAAM,eAAe,eAAgB,EAAA,CAAA;AAErC,MAAM,OAAU,GAAA,CAAC,EAAe,KAAA,CAAA,aAAA,EAAgB,EAAE,CAAA,EAAA,CAAA,CAAA;AAOlC,SAAA,0BAAA,CACd,IACA,QACG,EAAA;AACH,EAAM,MAAA,GAAA,GAAM,QAAQ,EAAE,CAAA,CAAA;AAEtB,EAAI,IAAA,KAAA,GAAQ,aAAa,GAAG,CAAA,CAAA;AAC5B,EAAA,IAAI,KAAO,EAAA;AACT,IAAO,OAAA,KAAA,CAAA;AAAA,GACT;AAEA,EAAA,KAAA,GAAQ,QAAS,EAAA,CAAA;AACjB,EAAA,YAAA,CAAa,GAAG,CAAI,GAAA,KAAA,CAAA;AACpB,EAAO,OAAA,KAAA,CAAA;AACT;;ACnBO,SAAS,wBAEd,QAA8C,EAAA;AAC9C,EAAA,MAAA,CAAO,OAAO,QAAQ,CAAA,CAAA;AACtB,EAAA,MAAM,cAA2C,GAAA;AAAA,IAC/C,UAAU,OAAS,EAAA;AACjB,MAAA,OAAO,SAAS,OAAO,CAAA,CAAA;AAAA,KACzB;AAAA,GACF,CAAA;AACA,EAAO,MAAA,CAAA,cAAA,CAAe,gBAAgB,MAAQ,EAAA;AAAA,IAC5C,YAAc,EAAA,IAAA;AAAA,IACd,UAAY,EAAA,IAAA;AAAA,IACZ,GAAM,GAAA;AACJ,MAAO,OAAA,QAAA,CAAA;AAAA,KACT;AAAA,GACD,CAAA,CAAA;AACD,EAAO,OAAA,cAAA,CAAA;AACT;;ACbO,SAAS,uBAEd,GAA4D,EAAA;AAC5D,EAAO,OAAA,0BAAA;AAAA,IAA2B,GAAA;AAAA,IAAK,MACrC,cAAoD,KAAS,CAAA,CAAA;AAAA,GAC/D,CAAA;AACF,CAAA;AAsBO,SAAS,oBAEd,GAAmD,EAAA;AACnD,EAAO,OAAA,UAAA,CAAW,sBAAiC,CAAA,GAAG,CAAC,CAAA,CAAA;AACzD,CAAA;AAwBO,SAAS,iCAAiC,GAAa,EAAA;AAC5D,EAAO,OAAA;AAAA,IACL,IAAI,QAA4C,EAAA;AAC9C,MAAC,UAAmB,CAAA,CAAA,aAAA,EAAgB,GAAG,CAAA,EAAA,CAAI,CAAI,GAAA,aAAA;AAAA,QAC7C,wBAAwB,QAAQ,CAAA;AAAA,OAClC,CAAA;AAAA,KACF;AAAA,IACA,KAAQ,GAAA;AACN,MAAQ,OAAA,UAAA,CAAmB,CAAgB,aAAA,EAAA,GAAG,CAAI,EAAA,CAAA,CAAA,CAAA;AAAA,KACpD;AAAA,GACF,CAAA;AACF;;;;"}
1
+ {"version":3,"file":"index.esm.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;"}
@@ -0,0 +1,28 @@
1
+ import { createContext, useContext } from 'react';
2
+ import { getOrCreateGlobalSingleton } from './globalObject.esm.js';
3
+ import { createVersionedValueMap } from './VersionedValue.esm.js';
4
+
5
+ function createVersionedContext(key) {
6
+ return getOrCreateGlobalSingleton(
7
+ key,
8
+ () => createContext(void 0)
9
+ );
10
+ }
11
+ function useVersionedContext(key) {
12
+ return useContext(createVersionedContext(key));
13
+ }
14
+ function createVersionedContextForTesting(key) {
15
+ return {
16
+ set(versions) {
17
+ globalThis[`__@backstage/${key}__`] = createContext(
18
+ createVersionedValueMap(versions)
19
+ );
20
+ },
21
+ reset() {
22
+ delete globalThis[`__@backstage/${key}__`];
23
+ }
24
+ };
25
+ }
26
+
27
+ export { createVersionedContext, createVersionedContextForTesting, useVersionedContext };
28
+ //# sourceMappingURL=VersionedContext.esm.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"VersionedContext.esm.js","sources":["../../src/lib/VersionedContext.ts"],"sourcesContent":["/*\n * Copyright 2021 The Backstage Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { createContext, useContext, Context } from 'react';\nimport { getOrCreateGlobalSingleton } from './globalObject';\nimport { createVersionedValueMap, VersionedValue } from './VersionedValue';\n\n/**\n * Get the existing or create a new versioned React context that's\n * stored inside a global singleton.\n *\n * @param key - A key that uniquely identifies the context.\n * @public\n * @example\n *\n * ```ts\n * const MyContext = createVersionedContext<{ 1: string }>('my-context');\n *\n * const MyContextProvider = ({children}) => (\n * <MyContext.Provider value={createVersionedValueMap({ 1: 'value-for-version-1' })}>\n * {children}\n * <MyContext.Provider>\n * )\n * ```\n */\nexport function createVersionedContext<\n Versions extends { [version in number]: unknown },\n>(key: string): Context<VersionedValue<Versions> | undefined> {\n return getOrCreateGlobalSingleton(key, () =>\n createContext<VersionedValue<Versions> | undefined>(undefined),\n );\n}\n\n/**\n * A hook that simplifies the consumption of a versioned contexts that's\n * stored inside a global singleton.\n *\n * @param key - A key that uniquely identifies the context.\n * @public\n * @example\n *\n * ```ts\n * const versionedHolder = useVersionedContext<{ 1: string }>('my-context');\n *\n * if (!versionedHolder) {\n * throw new Error('My context is not available!')\n * }\n *\n * const myValue = versionedHolder.atVersion(1);\n *\n * // ...\n * ```\n */\nexport function useVersionedContext<\n Versions extends { [version in number]: unknown },\n>(key: string): VersionedValue<Versions> | undefined {\n return useContext(createVersionedContext<Versions>(key));\n}\n\n/**\n * Creates a helper for writing tests towards multiple different\n * combinations of versions provided from a context.\n *\n * @param key - A key that uniquely identifies the context.\n * @public\n * @example\n *\n * ```ts\n * const context = createVersionedContextForTesting('my-context');\n *\n * afterEach(() => {\n * context.reset();\n * });\n *\n * it('should work when provided with version 1', () => {\n * context.set({1: 'value-for-version-1'})\n *\n * // ...\n * })\n * ```\n */\nexport function createVersionedContextForTesting(key: string) {\n return {\n set(versions: { [version in number]: unknown }) {\n (globalThis as any)[`__@backstage/${key}__`] = createContext(\n createVersionedValueMap(versions),\n );\n },\n reset() {\n delete (globalThis as any)[`__@backstage/${key}__`];\n },\n };\n}\n"],"names":[],"mappings":";;;;AAsCO,SAAS,uBAEd,GAA4D,EAAA;AAC5D,EAAO,OAAA,0BAAA;AAAA,IAA2B,GAAA;AAAA,IAAK,MACrC,cAAoD,KAAS,CAAA,CAAA;AAAA,GAC/D,CAAA;AACF,CAAA;AAsBO,SAAS,oBAEd,GAAmD,EAAA;AACnD,EAAO,OAAA,UAAA,CAAW,sBAAiC,CAAA,GAAG,CAAC,CAAA,CAAA;AACzD,CAAA;AAwBO,SAAS,iCAAiC,GAAa,EAAA;AAC5D,EAAO,OAAA;AAAA,IACL,IAAI,QAA4C,EAAA;AAC9C,MAAC,UAAmB,CAAA,CAAA,aAAA,EAAgB,GAAG,CAAA,EAAA,CAAI,CAAI,GAAA,aAAA;AAAA,QAC7C,wBAAwB,QAAQ,CAAA;AAAA,OAClC,CAAA;AAAA,KACF;AAAA,IACA,KAAQ,GAAA;AACN,MAAQ,OAAA,UAAA,CAAmB,CAAgB,aAAA,EAAA,GAAG,CAAI,EAAA,CAAA,CAAA,CAAA;AAAA,KACpD;AAAA,GACF,CAAA;AACF;;;;"}
@@ -0,0 +1,19 @@
1
+ function createVersionedValueMap(versions) {
2
+ Object.freeze(versions);
3
+ const versionedValue = {
4
+ atVersion(version) {
5
+ return versions[version];
6
+ }
7
+ };
8
+ Object.defineProperty(versionedValue, "$map", {
9
+ configurable: true,
10
+ enumerable: true,
11
+ get() {
12
+ return versions;
13
+ }
14
+ });
15
+ return versionedValue;
16
+ }
17
+
18
+ export { createVersionedValueMap };
19
+ //# sourceMappingURL=VersionedValue.esm.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"VersionedValue.esm.js","sources":["../../src/lib/VersionedValue.ts"],"sourcesContent":["/*\n * Copyright 2021 The Backstage Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n/**\n * The versioned value interface is a container for a set of values that\n * can be looked up by version. It is intended to be used as a container\n * for values that can be versioned independently of package versions.\n *\n * @public\n */\nexport type VersionedValue<Versions extends { [version: number]: unknown }> = {\n atVersion<Version extends keyof Versions>(\n version: Version,\n ): Versions[Version] | undefined;\n};\n\n/**\n * Creates a container for a map of versioned values that implements VersionedValue.\n *\n * @public\n */\nexport function createVersionedValueMap<\n Versions extends { [version: number]: unknown },\n>(versions: Versions): VersionedValue<Versions> {\n Object.freeze(versions);\n const versionedValue: VersionedValue<Versions> = {\n atVersion(version) {\n return versions[version];\n },\n };\n Object.defineProperty(versionedValue, '$map', {\n configurable: true,\n enumerable: true,\n get() {\n return versions;\n },\n });\n return versionedValue;\n}\n"],"names":[],"mappings":"AAkCO,SAAS,wBAEd,QAA8C,EAAA;AAC9C,EAAA,MAAA,CAAO,OAAO,QAAQ,CAAA,CAAA;AACtB,EAAA,MAAM,cAA2C,GAAA;AAAA,IAC/C,UAAU,OAAS,EAAA;AACjB,MAAA,OAAO,SAAS,OAAO,CAAA,CAAA;AAAA,KACzB;AAAA,GACF,CAAA;AACA,EAAO,MAAA,CAAA,cAAA,CAAe,gBAAgB,MAAQ,EAAA;AAAA,IAC5C,YAAc,EAAA,IAAA;AAAA,IACd,UAAY,EAAA,IAAA;AAAA,IACZ,GAAM,GAAA;AACJ,MAAO,OAAA,QAAA,CAAA;AAAA,KACT;AAAA,GACD,CAAA,CAAA;AACD,EAAO,OAAA,cAAA,CAAA;AACT;;;;"}
@@ -0,0 +1,24 @@
1
+ function getGlobalObject() {
2
+ if (typeof window !== "undefined" && window.Math === Math) {
3
+ return window;
4
+ }
5
+ if (typeof self !== "undefined" && self.Math === Math) {
6
+ return self;
7
+ }
8
+ return Function("return this")();
9
+ }
10
+ const globalObject = getGlobalObject();
11
+ const makeKey = (id) => `__@backstage/${id}__`;
12
+ function getOrCreateGlobalSingleton(id, supplier) {
13
+ const key = makeKey(id);
14
+ let value = globalObject[key];
15
+ if (value) {
16
+ return value;
17
+ }
18
+ value = supplier();
19
+ globalObject[key] = value;
20
+ return value;
21
+ }
22
+
23
+ export { getOrCreateGlobalSingleton };
24
+ //# sourceMappingURL=globalObject.esm.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"globalObject.esm.js","sources":["../../src/lib/globalObject.ts"],"sourcesContent":["/*\n * Copyright 2021 The Backstage Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n// https://github.com/zloirock/core-js/issues/86#issuecomment-115759028\nfunction getGlobalObject() {\n if (typeof window !== 'undefined' && window.Math === Math) {\n return window;\n }\n // eslint-disable-next-line no-restricted-globals\n if (typeof self !== 'undefined' && self.Math === Math) {\n // eslint-disable-next-line no-restricted-globals\n return self;\n }\n // eslint-disable-next-line no-new-func\n return Function('return this')();\n}\n\nconst globalObject = getGlobalObject();\n\nconst makeKey = (id: string) => `__@backstage/${id}__`;\n\n/**\n * Serializes access to a global singleton value, with the first caller creating the value.\n *\n * @public\n */\nexport function getOrCreateGlobalSingleton<T>(\n id: string,\n supplier: () => T,\n): T {\n const key = makeKey(id);\n\n let value = globalObject[key];\n if (value) {\n return value;\n }\n\n value = supplier();\n globalObject[key] = value;\n return value;\n}\n"],"names":[],"mappings":"AAiBA,SAAS,eAAkB,GAAA;AACzB,EAAA,IAAI,OAAO,MAAA,KAAW,WAAe,IAAA,MAAA,CAAO,SAAS,IAAM,EAAA;AACzD,IAAO,OAAA,MAAA,CAAA;AAAA,GACT;AAEA,EAAA,IAAI,OAAO,IAAA,KAAS,WAAe,IAAA,IAAA,CAAK,SAAS,IAAM,EAAA;AAErD,IAAO,OAAA,IAAA,CAAA;AAAA,GACT;AAEA,EAAO,OAAA,QAAA,CAAS,aAAa,CAAE,EAAA,CAAA;AACjC,CAAA;AAEA,MAAM,eAAe,eAAgB,EAAA,CAAA;AAErC,MAAM,OAAU,GAAA,CAAC,EAAe,KAAA,CAAA,aAAA,EAAgB,EAAE,CAAA,EAAA,CAAA,CAAA;AAOlC,SAAA,0BAAA,CACd,IACA,QACG,EAAA;AACH,EAAM,MAAA,GAAA,GAAM,QAAQ,EAAE,CAAA,CAAA;AAEtB,EAAI,IAAA,KAAA,GAAQ,aAAa,GAAG,CAAA,CAAA;AAC5B,EAAA,IAAI,KAAO,EAAA;AACT,IAAO,OAAA,KAAA,CAAA;AAAA,GACT;AAEA,EAAA,KAAA,GAAQ,QAAS,EAAA,CAAA;AACjB,EAAA,YAAA,CAAa,GAAG,CAAI,GAAA,KAAA,CAAA;AACpB,EAAO,OAAA,KAAA,CAAA;AACT;;;;"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@backstage/version-bridge",
3
- "version": "1.0.8",
3
+ "version": "1.0.9-next.0",
4
4
  "description": "Utilities used by @backstage packages to support multiple concurrent versions",
5
5
  "backstage": {
6
6
  "role": "web-library"
@@ -39,9 +39,9 @@
39
39
  "@types/react": "^16.13.1 || ^17.0.0"
40
40
  },
41
41
  "devDependencies": {
42
- "@backstage/cli": "^0.26.3",
42
+ "@backstage/cli": "^0.27.1-next.2",
43
43
  "@testing-library/jest-dom": "^6.0.0",
44
- "@testing-library/react": "^15.0.0"
44
+ "@testing-library/react": "^16.0.0"
45
45
  },
46
46
  "peerDependencies": {
47
47
  "react": "^16.13.1 || ^17.0.0 || ^18.0.0",