Skip to content

Commit

Permalink
Miscellaneous Maintainance Fixes (#555)
Browse files Browse the repository at this point in the history
* Update CHANGELOG.md [skip ci]

* only pull last release in changelog plugin

* Update vitest config ignore files to omit config files

* Align location of all js test files
  • Loading branch information
KetanReddy authored Dec 3, 2024
1 parent 7aadd25 commit bc36328
Show file tree
Hide file tree
Showing 16 changed files with 38 additions and 16 deletions.
20 changes: 20 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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) => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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({
Expand Down
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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<any> = {
id: "test-flow",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
5 changes: 2 additions & 3 deletions scripts/next-changelogs.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand All @@ -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 });
}
Expand Down
3 changes: 3 additions & 0 deletions vitest.config.mts
Original file line number Diff line number Diff line change
Expand Up @@ -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"],
Expand Down

0 comments on commit bc36328

Please sign in to comment.