Skip to content

Commit

Permalink
[RELEASE] Update package versions (#24)
Browse files Browse the repository at this point in the history
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
  • Loading branch information
github-actions[bot] and github-actions[bot] authored Dec 1, 2023
1 parent ec61b78 commit 6619777
Show file tree
Hide file tree
Showing 34 changed files with 227 additions and 97 deletions.
6 changes: 0 additions & 6 deletions .changeset/bright-dingos-double.md

This file was deleted.

7 changes: 0 additions & 7 deletions .changeset/bright-donkeys-yawn.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/fast-mails-search.md

This file was deleted.

53 changes: 0 additions & 53 deletions .changeset/long-cups-drive.md

This file was deleted.

7 changes: 0 additions & 7 deletions .changeset/smooth-cups-deny.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/tender-hairs-live.md

This file was deleted.

11 changes: 11 additions & 0 deletions src/packages/base-theme/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,16 @@
# @open-pioneer/base-theme

## 0.2.0

### Minor Changes

- 6f954e3: Compatibility with @open-pioneer/runtime@^2

### Patch Changes

- Updated dependencies [f5c0e31]
- @open-pioneer/chakra-integration@1.1.1

## 0.1.0

### Minor Changes
Expand Down
2 changes: 1 addition & 1 deletion src/packages/base-theme/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@open-pioneer/base-theme",
"version": "0.1.0",
"version": "0.2.0",
"main": "index.ts",
"license": "Apache-2.0",
"scripts": {
Expand Down
6 changes: 6 additions & 0 deletions src/packages/chakra-integration/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# @open-pioneer/chakra-integration

## 1.1.1

### Patch Changes

- f5c0e31: Bump chakra-related dependency versions

## 1.1.0

### Minor Changes
Expand Down
2 changes: 1 addition & 1 deletion src/packages/chakra-integration/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@open-pioneer/chakra-integration",
"version": "1.1.0",
"version": "1.1.1",
"main": "index.tsx",
"license": "Apache-2.0",
"scripts": {
Expand Down
13 changes: 13 additions & 0 deletions src/packages/http/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,18 @@
# @open-pioneer/http

## 2.0.0

### Major Changes

- 6f954e3: Compatibility with @open-pioneer/runtime@^2

### Patch Changes

- Updated dependencies [f5c0e31]
- Updated dependencies [ce9e060]
- Updated dependencies [6f954e3]
- @open-pioneer/runtime@2.0.0

## 1.0.3

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion src/packages/http/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@open-pioneer/http",
"version": "1.0.3",
"version": "2.0.0",
"license": "Apache-2.0",
"main": "index.ts",
"scripts": {
Expand Down
13 changes: 13 additions & 0 deletions src/packages/integration/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,18 @@
# @open-pioneer/integration

## 2.0.0

### Major Changes

- 6f954e3: Compatibility with @open-pioneer/runtime@^2

### Patch Changes

- Updated dependencies [f5c0e31]
- Updated dependencies [ce9e060]
- Updated dependencies [6f954e3]
- @open-pioneer/runtime@2.0.0

## 1.0.3

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion src/packages/integration/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@open-pioneer/integration",
"version": "1.0.3",
"version": "2.0.0",
"license": "Apache-2.0",
"main": "index.ts",
"scripts": {
Expand Down
66 changes: 66 additions & 0 deletions src/packages/runtime/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,71 @@
# @open-pioneer/runtime

## 2.0.0

### Major Changes

- ce9e060: Remove support for closed shadow roots.
Shadow roots used by trails applications are now always `"open"`.
See #19.
- 6f954e3: **Breaking Change**: change how services integrate into TypeScript (fixes #22).
The old TypeScript integration had unexpected edge cases, see the linked issue.

NOTE: The changes below have no impact on runtime behavior, but they may trigger TypeScript errors in your code.

- To register a service's type with TypeScript, one previously used a block such as this:

```ts
// OLD! Can be removed
import "@open-pioneer/runtime";
declare module "@open-pioneer/runtime" {
interface ServiceRegistry {
"http.HttpService": HttpService;
}
}
```

The new method requires the developer to change the service's declaration.
Simply add `extends DeclaredService<"SERVICE_ID">` to your service interface, where `SERVICE_ID` should match the service's interface name (`"provides"` in `build.config.mjs`).

```diff
+ import { DeclaredService } from "@open-pioneer/runtime";
- export interface HttpService {
+ export interface HttpService extends DeclaredService<"http.HttpService"> {
- import "@open-pioneer/runtime";
- declare module "@open-pioneer/runtime" {
- interface ServiceRegistry {
- "http.HttpService": HttpService;
- }
- }
```

- To use a service from React code (i.e. `useService` and `useServices`), you must now use the explicit service type in the hook's generic parameter list. Otherwise the hook will simply return `unknown`:

```diff
+ import { HttpService } from "@open-pioneer/http";
- const httpService = useService("http.HttpService");
+ const httpService = useService<HttpService>("http.HttpService");
```

This change was necessary to fix an issue where the global registration of the service interface (and its association with the string constant) was not available.

The system will still check that the provided string matches the string constant used in the service's declaration (`DeclaredService<...>`), so type safety is preserved.

- The types `InterfaceName` and `ServiceType<I>` have been removed. Use explicit service interfaces instead.
- The interfaces `ServiceRegistry` and `PropertiesRegistry` have been removed as global registration is no longer possible.
- The type `RawApplicationProperties` has been removed. Use `ApplicationProperties` instead.

### Patch Changes

- f5c0e31: Bump @formatjs/intl version
- Updated dependencies [f5c0e31]
- Updated dependencies [6f954e3]
- @open-pioneer/chakra-integration@1.1.1
- @open-pioneer/base-theme@0.2.0
- @open-pioneer/runtime-react-support@1.0.0

## 1.1.0

### Minor Changes
Expand Down
2 changes: 1 addition & 1 deletion src/packages/runtime/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@open-pioneer/runtime",
"version": "1.1.0",
"version": "2.0.0",
"license": "Apache-2.0",
"main": "index.ts",
"scripts": {
Expand Down
10 changes: 10 additions & 0 deletions src/packages/test-utils/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
# @open-pioneer/test-utils

## 1.0.2

### Patch Changes

- f5c0e31: Bump @formatjs/intl version
- f5c0e31: Bump @testing-library/\* dependencies
- Updated dependencies [f5c0e31]
- @open-pioneer/chakra-integration@1.1.1
- @open-pioneer/runtime-react-support@1.0.0

## 1.0.1

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion src/packages/test-utils/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@open-pioneer/test-utils",
"version": "1.0.1",
"version": "1.0.2",
"license": "Apache-2.0",
"scripts": {
"build": "build-pioneer-package"
Expand Down
13 changes: 13 additions & 0 deletions src/samples/api-sample/api-app/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,18 @@
# api-app

## 0.0.10

### Patch Changes

- Updated dependencies [f5c0e31]
- Updated dependencies [ce9e060]
- Updated dependencies [f5c0e31]
- Updated dependencies [6f954e3]
- Updated dependencies [6f954e3]
- @open-pioneer/runtime@2.0.0
- @open-pioneer/chakra-integration@1.1.1
- @open-pioneer/integration@2.0.0

## 0.0.9

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion src/samples/api-sample/api-app/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "api-app",
"version": "0.0.9",
"version": "0.0.10",
"private": true,
"dependencies": {
"@open-pioneer/runtime": "workspace:^",
Expand Down
13 changes: 13 additions & 0 deletions src/samples/chakra-sample/chakra-app/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,18 @@
# chakra-app

## 0.0.10

### Patch Changes

- Updated dependencies [f5c0e31]
- Updated dependencies [ce9e060]
- Updated dependencies [f5c0e31]
- Updated dependencies [6f954e3]
- Updated dependencies [6f954e3]
- @open-pioneer/runtime@2.0.0
- @open-pioneer/chakra-integration@1.1.1
- @open-pioneer/base-theme@0.2.0

## 0.0.9

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion src/samples/chakra-sample/chakra-app/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "chakra-app",
"version": "0.0.9",
"version": "0.0.10",
"private": true,
"dependencies": {
"@open-pioneer/base-theme": "workspace:^",
Expand Down
11 changes: 11 additions & 0 deletions src/samples/extension-sample/extension-app/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,16 @@
# extension-app

## 0.0.10

### Patch Changes

- Updated dependencies [f5c0e31]
- Updated dependencies [ce9e060]
- Updated dependencies [f5c0e31]
- Updated dependencies [6f954e3]
- @open-pioneer/runtime@2.0.0
- @open-pioneer/chakra-integration@1.1.1

## 0.0.9

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion src/samples/extension-sample/extension-app/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "extension-app",
"version": "0.0.9",
"version": "0.0.10",
"private": true,
"main": "index",
"dependencies": {
Expand Down
13 changes: 13 additions & 0 deletions src/samples/http-sample/http-app/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,18 @@
# http-app

## 0.0.10

### Patch Changes

- Updated dependencies [f5c0e31]
- Updated dependencies [ce9e060]
- Updated dependencies [f5c0e31]
- Updated dependencies [6f954e3]
- Updated dependencies [6f954e3]
- @open-pioneer/runtime@2.0.0
- @open-pioneer/chakra-integration@1.1.1
- @open-pioneer/http@2.0.0

## 0.0.9

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion src/samples/http-sample/http-app/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "http-app",
"version": "0.0.9",
"version": "0.0.10",
"private": true,
"dependencies": {
"@open-pioneer/chakra-integration": "workspace:^",
Expand Down
Loading

0 comments on commit 6619777

Please sign in to comment.