Skip to content

Commit

Permalink
Merge pull request #882 from NordicSemiconductor/fix/legacy-packagejs…
Browse files Browse the repository at this point in the history
…on-supported-devices

fix: make supported devices a string enum in legacy parsing
  • Loading branch information
boundlesscalm authored Feb 5, 2024
2 parents 2bfecee + 5ce2022 commit 4d87c8d
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
6 changes: 6 additions & 0 deletions Changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,12 @@ This project does _not_ adhere to
[Semantic Versioning](https://semver.org/spec/v2.0.0.html) but contrary to it
every new version is a new major version.

## 154.0.0 - 2024-02-05

### Changed

- `packageJsonLegacyApp` type for `supportedDevices` is now `string[]`.

## 153.0.0 - 2024-02-05

### Added
Expand Down
1 change: 1 addition & 0 deletions ipc/schema/packageJson.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ export const parsePackageJsonApp =
// and the html in it can also be undefined, so there we need to use this legacy variant
const packageJsonLegacyApp = packageJsonApp.extend({
nrfConnectForDesktop: nrfConnectForDesktop
.extend({ supportedDevices: z.array(z.string()).nonempty().optional() })
.partial({ html: true })
.optional(),
});
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@nordicsemiconductor/pc-nrfconnect-shared",
"version": "153.0.0",
"version": "154.0.0",
"description": "Shared commodities for developing pc-nrfconnect-* packages",
"repository": {
"type": "git",
Expand Down

0 comments on commit 4d87c8d

Please sign in to comment.