diff --git a/CHANGELOG.md b/CHANGELOG.md index c6b6e1e5d..0b9b92955 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,23 @@ +# 0.10.1 (Tue Dec 03 2024) + +### Release Notes + +#### Add Changelogs from `next` releases to CHANGELOG.md file ([#554](https://github.com/player-ui/player/pull/554)) + +Preserve `next` releases in CHANGELOG.md file + +--- + +#### 🐛 Bug Fix + +- Add Changelogs from `next` releases to CHANGELOG.md file [#554](https://github.com/player-ui/player/pull/554) ([@KetanReddy](https://github.com/KetanReddy)) + +#### Authors: 1 + +- Ketan Reddy ([@KetanReddy](https://github.com/KetanReddy)) + +--- + # 0.9.1 (Thu Sep 26 2024) #### 🐛 Bug Fix diff --git a/plugins/async-node/core/src/index.test.ts b/plugins/async-node/core/src/__tests__/index.test.ts similarity index 99% rename from plugins/async-node/core/src/index.test.ts rename to plugins/async-node/core/src/__tests__/index.test.ts index 65a9e7f10..f771a139a 100644 --- a/plugins/async-node/core/src/index.test.ts +++ b/plugins/async-node/core/src/__tests__/index.test.ts @@ -2,7 +2,7 @@ import { expect, test, describe } from "vitest"; import { Node, InProgressState, ViewInstance } from "@player-ui/player"; import { Player, Parser } from "@player-ui/player"; import { waitFor } from "@testing-library/react"; -import { AsyncNodePlugin, AsyncNodePluginPlugin } from "./index"; +import { AsyncNodePlugin, AsyncNodePluginPlugin } from "../index"; describe("view", () => { const basicFRFWithActions = { diff --git a/plugins/beacon/core/src/index.test.ts b/plugins/beacon/core/src/__tests__/index.test.ts similarity index 99% rename from plugins/beacon/core/src/index.test.ts rename to plugins/beacon/core/src/__tests__/index.test.ts index 357eda15c..5f28eb45c 100644 --- a/plugins/beacon/core/src/index.test.ts +++ b/plugins/beacon/core/src/__tests__/index.test.ts @@ -3,8 +3,8 @@ import type { InProgressState, FlowController, Asset } from "@player-ui/player"; import { waitFor } from "@testing-library/react"; import { Player } from "@player-ui/player"; import { makeFlow } from "@player-ui/make-flow"; -import type { BeaconPluginPlugin } from "."; -import { BeaconPlugin } from "."; +import type { BeaconPluginPlugin } from ".."; +import { BeaconPlugin } from ".."; const minimal = { id: "minimal", diff --git a/plugins/check-path/core/src/index.test.ts b/plugins/check-path/core/src/__tests__/index.test.ts similarity index 99% rename from plugins/check-path/core/src/index.test.ts rename to plugins/check-path/core/src/__tests__/index.test.ts index 3c46528e7..77fb1bd0c 100644 --- a/plugins/check-path/core/src/index.test.ts +++ b/plugins/check-path/core/src/__tests__/index.test.ts @@ -9,8 +9,8 @@ import { Player } from "@player-ui/player"; import type { TransformFunction } from "@player-ui/player"; import { makeFlow } from "@player-ui/make-flow"; import { AssetTransformPlugin } from "@player-ui/asset-transform-plugin"; -import { CheckPathPlugin } from "."; -import { CheckPathPluginSymbol } from "./symbols"; +import { CheckPathPlugin } from ".."; +import { CheckPathPluginSymbol } from "../symbols"; const nestedAssetFlow = makeFlow({ id: "view-1", diff --git a/plugins/common-expressions/core/src/index.test.ts b/plugins/common-expressions/core/src/__tests__/index.test.ts similarity index 93% rename from plugins/common-expressions/core/src/index.test.ts rename to plugins/common-expressions/core/src/__tests__/index.test.ts index 935e34e92..5126685d8 100644 --- a/plugins/common-expressions/core/src/index.test.ts +++ b/plugins/common-expressions/core/src/__tests__/index.test.ts @@ -2,7 +2,7 @@ import { expect, test } from "vitest"; import type { InProgressState } from "@player-ui/player"; import { Player } from "@player-ui/player"; import { makeFlow } from "@player-ui/make-flow"; -import { CommonExpressionsPlugin } from "."; +import { CommonExpressionsPlugin } from ".."; test("works in real life", () => { const flow = makeFlow({ diff --git a/plugins/data-change-listener/core/src/index.test.ts b/plugins/data-change-listener/core/src/__tests__/index.test.ts similarity index 99% rename from plugins/data-change-listener/core/src/index.test.ts rename to plugins/data-change-listener/core/src/__tests__/index.test.ts index 1fd5c1a1a..61679faee 100644 --- a/plugins/data-change-listener/core/src/index.test.ts +++ b/plugins/data-change-listener/core/src/__tests__/index.test.ts @@ -9,7 +9,7 @@ import { Player } from "@player-ui/player"; import { CommonTypesPlugin } from "@player-ui/common-types-plugin"; import { AssetTransformPlugin } from "@player-ui/asset-transform-plugin"; import { Registry } from "@player-ui/partial-match-registry"; -import { DataChangeListenerPlugin } from "./index"; +import { DataChangeListenerPlugin } from "../index"; /** Test transform function to add validation to asset */ const transform: TransformFunction = (asset: any, options: any) => { diff --git a/plugins/data-filter/core/src/index.test.ts b/plugins/data-filter/core/src/__tests__/index.test.ts similarity index 96% rename from plugins/data-filter/core/src/index.test.ts rename to plugins/data-filter/core/src/__tests__/index.test.ts index 3c0832d34..b5bcb5ef2 100644 --- a/plugins/data-filter/core/src/index.test.ts +++ b/plugins/data-filter/core/src/__tests__/index.test.ts @@ -2,7 +2,7 @@ import { test, expect, describe } from "vitest"; import type { InProgressState } from "@player-ui/player"; import { Player } from "@player-ui/player"; import { makeFlow } from "@player-ui/make-flow"; -import { DataFilterPlugin, omitIn } from "."; +import { DataFilterPlugin, omitIn } from ".."; test("removes top level keys", async () => { const player = new Player({ diff --git a/plugins/expression/core/src/index.test.ts b/plugins/expression/core/src/__tests__/index.test.ts similarity index 96% rename from plugins/expression/core/src/index.test.ts rename to plugins/expression/core/src/__tests__/index.test.ts index 7073c4020..cd4723939 100644 --- a/plugins/expression/core/src/index.test.ts +++ b/plugins/expression/core/src/__tests__/index.test.ts @@ -1,7 +1,7 @@ import { test, expect } from "vitest"; import type { InProgressState } from "@player-ui/player"; import { Player } from "@player-ui/player"; -import { ExpressionPlugin } from "."; +import { ExpressionPlugin } from ".."; const minimal = { id: "minimal", diff --git a/plugins/metrics/core/src/index.test.ts b/plugins/metrics/core/src/__tests__/index.test.ts similarity index 99% rename from plugins/metrics/core/src/index.test.ts rename to plugins/metrics/core/src/__tests__/index.test.ts index c63779ac2..9b21e3092 100644 --- a/plugins/metrics/core/src/index.test.ts +++ b/plugins/metrics/core/src/__tests__/index.test.ts @@ -3,12 +3,12 @@ import type { BeaconPluginPlugin } from "@player-ui/beacon-plugin"; import { BeaconPlugin } from "@player-ui/beacon-plugin"; import type { InProgressState, Flow } from "@player-ui/player"; import { Player } from "@player-ui/player"; -import type { NodeRenderMetrics } from "."; +import type { NodeRenderMetrics } from ".."; import { MetricsCorePlugin, MetricsViewBeaconPlugin, RequestTimeWebPlugin, -} from "."; +} from ".."; const basicContentWithActions: Flow = { id: "test-flow", diff --git a/plugins/partial-match-fingerprint/core/src/index.test.ts b/plugins/partial-match-fingerprint/core/src/__tests__/index.test.ts similarity index 96% rename from plugins/partial-match-fingerprint/core/src/index.test.ts rename to plugins/partial-match-fingerprint/core/src/__tests__/index.test.ts index 85f73cf7f..29b34fac5 100644 --- a/plugins/partial-match-fingerprint/core/src/index.test.ts +++ b/plugins/partial-match-fingerprint/core/src/__tests__/index.test.ts @@ -2,7 +2,7 @@ import { test, expect } from "vitest"; import { Player } from "@player-ui/player"; import { Registry } from "@player-ui/partial-match-registry"; import { makeFlow } from "@player-ui/make-flow"; -import { PartialMatchFingerprintPlugin } from "."; +import { PartialMatchFingerprintPlugin } from ".."; const action = makeFlow({ id: "action", diff --git a/plugins/pubsub/core/src/__test__/handler.test.ts b/plugins/pubsub/core/src/__tests__/handler.test.ts similarity index 100% rename from plugins/pubsub/core/src/__test__/handler.test.ts rename to plugins/pubsub/core/src/__tests__/handler.test.ts diff --git a/plugins/pubsub/core/src/__test__/plugin.test.ts b/plugins/pubsub/core/src/__tests__/plugin.test.ts similarity index 100% rename from plugins/pubsub/core/src/__test__/plugin.test.ts rename to plugins/pubsub/core/src/__tests__/plugin.test.ts diff --git a/plugins/pubsub/core/src/__test__/pubsub.test.ts b/plugins/pubsub/core/src/__tests__/pubsub.test.ts similarity index 100% rename from plugins/pubsub/core/src/__test__/pubsub.test.ts rename to plugins/pubsub/core/src/__tests__/pubsub.test.ts diff --git a/plugins/stage-revert-data/core/src/index.test.ts b/plugins/stage-revert-data/core/src/__tests__/index.test.ts similarity index 99% rename from plugins/stage-revert-data/core/src/index.test.ts rename to plugins/stage-revert-data/core/src/__tests__/index.test.ts index ebeb5511d..a42563b5c 100644 --- a/plugins/stage-revert-data/core/src/index.test.ts +++ b/plugins/stage-revert-data/core/src/__tests__/index.test.ts @@ -2,7 +2,7 @@ import { describe, it, expect, vitest, beforeEach, beforeAll } from "vitest"; import type { DataController, InProgressState } from "@player-ui/player"; import { Player } from "@player-ui/player"; import type { Flow } from "@player-ui/types"; -import { StageRevertDataPlugin } from "./index"; +import { StageRevertDataPlugin } from "../index"; const dataChangeFlow: Flow = { id: "test-flow", diff --git a/scripts/next-changelogs.js b/scripts/next-changelogs.js index 30e665b9d..89ee1aa44 100644 --- a/scripts/next-changelogs.js +++ b/scripts/next-changelogs.js @@ -12,7 +12,7 @@ const getLatestReleaseTag = () => { (tag) => tag.includes("-next.") || tag.match(/^(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)$/), - ); + )[0]; }; class NextChangelogsPlugin { @@ -21,9 +21,8 @@ class NextChangelogsPlugin { apply(auto) { auto.hooks.next.tapPromise(this.name, async ({ dryRun }) => { const latestRelease = getLatestReleaseTag(); - if (dryRun) { - auto.logger.log.info(`Dry run: making changelog for: ${latestRelease}`); + auto.logger.log.info(`Dry run: making changelog from last release: ${latestRelease}`); } else { await auto.changelog({ from: latestRelease }); } diff --git a/vitest.config.mts b/vitest.config.mts index 613dc0290..1aee8a971 100644 --- a/vitest.config.mts +++ b/vitest.config.mts @@ -46,6 +46,9 @@ export default defineConfig({ "**/__mocks__/**", "**/*.d.ts", "**/*.test.*", + "vitest.config.mts", + "postcss.config.js", + "tailwind.config.js", ], all: true, reporter: ["text", "html", "lcovonly"],