@open-pioneer/runtime 2.1.0 → 2.1.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/CHANGELOG.md CHANGED
@@ -1,5 +1,12 @@
1
1
  # @open-pioneer/runtime
2
2
 
3
+ ## 2.1.1
4
+
5
+ ### Patch Changes
6
+
7
+ - f749d96: Add a hint that `DECLARE_SERVICE_INTERFACE` should be imported via `import type`.
8
+ - @open-pioneer/runtime-react-support@1.0.0
9
+
3
10
  ## 2.1.0
4
11
 
5
12
  ### Minor Changes
@@ -37,10 +37,13 @@ export interface DeclaredService<InterfaceName extends string> {
37
37
  * Helper symbol to declare a service's interface name when not using a separate interface.
38
38
  *
39
39
  * > NOTE: This symbol does not exist at runtime. Declaring a service interface is compile time only!
40
+ * > It should therefore be imported via `import type` (see example below).
40
41
  *
41
42
  * @example
42
43
  *
43
44
  * ```ts
45
+ * import { type DECLARE_SERVICE_INTERFACE} from "@open-pioneer/runtime";
46
+ *
44
47
  * class MyServiceImpl {
45
48
  * // Add this line to your class.
46
49
  * // It declares (at compile time) that the service class must be used via the given interface name.
package/package.json CHANGED
@@ -1,15 +1,15 @@
1
1
  {
2
2
  "type": "module",
3
3
  "name": "@open-pioneer/runtime",
4
- "version": "2.1.0",
4
+ "version": "2.1.1",
5
5
  "license": "Apache-2.0",
6
6
  "peerDependencies": {
7
7
  "@formatjs/intl": "^2.9.9",
8
8
  "react": "^18.2.0",
9
9
  "react-dom": "^18.2.0",
10
10
  "@open-pioneer/base-theme": "^0.2.0",
11
- "@open-pioneer/chakra-integration": "^1.1.1",
12
11
  "@open-pioneer/core": "^1.2.1",
12
+ "@open-pioneer/chakra-integration": "^1.1.1",
13
13
  "@open-pioneer/runtime-react-support": "^1.0.0"
14
14
  },
15
15
  "exports": {