Skip to content

Commit

Permalink
[RELEASE] Update package versions (#70)
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 Jun 28, 2024
1 parent d9a0c1b commit 5a2414b
Show file tree
Hide file tree
Showing 14 changed files with 96 additions and 68 deletions.
6 changes: 0 additions & 6 deletions .changeset/bright-ads-behave.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/nice-humans-add.md

This file was deleted.

12 changes: 0 additions & 12 deletions .changeset/ninety-steaks-repeat.md

This file was deleted.

7 changes: 0 additions & 7 deletions .changeset/odd-ducks-warn.md

This file was deleted.

24 changes: 0 additions & 24 deletions .changeset/spotty-ducks-notice.md

This file was deleted.

10 changes: 0 additions & 10 deletions .changeset/tidy-balloons-cry.md

This file was deleted.

6 changes: 6 additions & 0 deletions packages/build-common/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Changelog @open-pioneer/build-common

## 2.0.4

### Patch Changes

- d9a0c1b: Use timestamps instead of request ids to import build configs

## 2.0.3

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/build-common/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@open-pioneer/build-common",
"description": "Common functionality used when building Open Pioneer Trails applications or packages.",
"version": "2.0.3",
"version": "2.0.4",
"main": "dist/index.js",
"types": "types.d.ts",
"type": "commonjs",
Expand Down
29 changes: 29 additions & 0 deletions packages/build-package-cli/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,34 @@
# Changelog @open-pioneer/build-package-cli

## 2.1.0

### Minor Changes

- e4ae880: Switch to `type: module`
- e4ae880: Implement additional validations when importing modules from other packages.

- When importing modules from normal node packages, `build-package` will now check that the imported module actually exists.
- When importing modules from another trails package in the same repository, `build-package` now verifies that the imported module is an actual entry point of that package (declared in the `build.config.mjs`).

These validations are designed to errors where a package would run locally (in Vite's development mode)
but end up broken when published (see also https://github.com/open-pioneer/trails-core-packages/issues/42).

- e4ae880: Introduce an option to configure the root directory (`-r` for the CLI, `rootDirectory` for the JavaScript API).

The root directory is used to detect which packages are local to the project.
The option defaults to the root of the current workspace (e.g. the PNPM workspace root), or, if that doesn't work, to the root of the current git repository.
However, it can also be configured manually.

### Patch Changes

- 3550ca8: Update dependencies
- Updated dependencies [e4ae880]
- Updated dependencies [e4ae880]
- Updated dependencies [3550ca8]
- Updated dependencies [e4ae880]
- Updated dependencies [e4ae880]
- @open-pioneer/build-package@3.0.0

## 2.0.3

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/build-package-cli/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@open-pioneer/build-package-cli",
"description": "Provides a CLI tool to compile Open Pioneer Trails packages.",
"version": "2.0.3",
"version": "2.1.0",
"type": "module",
"license": "Apache-2.0",
"repository": {
Expand Down
49 changes: 49 additions & 0 deletions packages/build-package/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,54 @@
# Changelog @open-pioneer/build-package

## 3.0.0

### Major Changes

- e4ae880: Switch to `type: module`

### Minor Changes

- e4ae880: Implement additional validations when importing modules from other packages.

- When importing modules from normal node packages, `build-package` will now check that the imported module actually exists.
- When importing modules from another trails package in the same repository, `build-package` now verifies that the imported module is an actual entry point of that package (declared in the `build.config.mjs`).

These validations are designed to errors where a package would run locally (in Vite's development mode)
but end up broken when published (see also https://github.com/open-pioneer/trails-core-packages/issues/42).

- e4ae880: Implement automatic rewrite for certain problematic import statements.

Under certain conditions, `build-package` will add extensions to imported modules when the imported module does not (strictly) exist.
For example, this rewrites

```js
import * from "ol/proj/proj4";
```

to

```js
import * from "ol/proj/proj4.js";
```

While the first import works with bundlers such as Vite or Rollup, Node will refuse to import it.
Because node is strict about extensions, the first snippet cannot execute in some environments (such as Vitest).

This new behavior is intended as a fix for https://github.com/open-pioneer/trails-openlayers-base-packages/issues/314.
Please open an issue if this fix causes any problems for your packages.

- e4ae880: Introduce an option to configure the root directory (`-r` for the CLI, `rootDirectory` for the JavaScript API).

The root directory is used to detect which packages are local to the project.
The option defaults to the root of the current workspace (e.g. the PNPM workspace root), or, if that doesn't work, to the root of the current git repository.
However, it can also be configured manually.
### Patch Changes
- 3550ca8: Update dependencies
- Updated dependencies [d9a0c1b]
- @open-pioneer/[email protected]
## 2.0.3
### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/build-package/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@open-pioneer/build-package",
"description": "Implements partial compilation for Open Pioneer Trails packages.",
"version": "2.0.3",
"version": "3.0.0",
"main": "dist/index.js",
"types": "types.d.ts",
"type": "module",
Expand Down
8 changes: 8 additions & 0 deletions packages/vite-plugin/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# Changelog @open-pioneer/vite-plugin-pioneer

## 3.0.3

### Patch Changes

- 3550ca8: Update dependencies
- Updated dependencies [d9a0c1b]
- @open-pioneer/build-common@2.0.4

## 3.0.2

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/vite-plugin/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@open-pioneer/vite-plugin-pioneer",
"description": "The vite plugin provided by this package is required by Open Pioneer Trails applications.",
"version": "3.0.2",
"version": "3.0.3",
"main": "dist/index.js",
"types": "types.d.ts",
"type": "module",
Expand Down

0 comments on commit 5a2414b

Please sign in to comment.