Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

## Unreleased

## 1.0.4

- Corrected the validated default backend matrix to WebGPU FP16 and WASM FP32, made manual Demo selections strict, and exposed detailed runtime fallback causes.

## 1.0.3
Expand Down
2 changes: 1 addition & 1 deletion apps/demo/tests/demo.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ test("starts in Chinese and exposes the complete detection workflow", async ({
);
await expect(page.getByRole("link", { name: "GitHub" })).toHaveAttribute("target", "_blank");
await expect(page.getByRole("link", { name: "GitHub" })).toHaveAttribute("rel", "noreferrer");
await expect(page.getByText("SDK 1.0.3", { exact: true })).toBeVisible();
await expect(page.getByText("SDK 1.0.4", { exact: true })).toBeVisible();
await expect(page.getByRole("button", { name: "English", exact: true })).toBeVisible();
await expect(page.getByRole("group", { name: "运行后端" })).toBeVisible();
await expect(page.getByRole("group", { name: "模型精度" })).toBeVisible();
Expand Down
2 changes: 1 addition & 1 deletion packages/sdk/etc/web-sdk-pp-doclayoutv3.api.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ export interface CreateDocLayoutOptions {
}

// @public (undocumented)
export const CURRENT_SDK_VERSION = "1.0.3";
export const CURRENT_SDK_VERSION = "1.0.4";

// @public (undocumented)
export type DecodableImage = Blob | CanvasImageSource | NormalizedRaster;
Expand Down
2 changes: 1 addition & 1 deletion packages/sdk/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "web-sdk-pp-doclayoutv3",
"version": "1.0.3",
"version": "1.0.4",
"description": "Browser-first PP-DocLayoutV3 layout detection SDK powered by ONNX Runtime Web",
"repository": {
"type": "git",
Expand Down
2 changes: 1 addition & 1 deletion packages/sdk/src/model/manifest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import type {
TensorSpec
} from "../types";

export const CURRENT_SDK_VERSION = "1.0.3";
export const CURRENT_SDK_VERSION = "1.0.4";

const SHA256_PATTERN = /^[0-9a-f]{64}$/i;
const VERSION_PATTERN =
Expand Down
8 changes: 4 additions & 4 deletions packages/sdk/tests/manifest.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ function expectManifestError(input: unknown, message: RegExp): void {

describe("parseModelManifest", () => {
it("reports the published SDK version", () => {
expect(CURRENT_SDK_VERSION).toBe("1.0.3");
expect(CURRENT_SDK_VERSION).toBe("1.0.4");
});

it("parses the generated default manifest without changing model semantics", () => {
Expand Down Expand Up @@ -113,13 +113,13 @@ describe("parseModelManifest", () => {

it("rejects a manifest requiring a newer SDK", () => {
const manifest = copyManifest();
manifest.minSdkVersion = "1.0.4";
manifest.minSdkVersion = "1.0.5";

const error = captureManifestError(manifest);
expect(error.code).toBe("MODEL_INCOMPATIBLE");
expect(error.details).toEqual({
currentSdkVersion: "1.0.3",
minSdkVersion: "1.0.4"
currentSdkVersion: "1.0.4",
minSdkVersion: "1.0.5"
});
});
});
Expand Down
8 changes: 4 additions & 4 deletions scripts/verify-release.test.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ describe("release workflow contract", () => {
});
});

test("keeps the 1.0.3 package, runtime, and changelog versions aligned", () => {
test("keeps the 1.0.4 package, runtime, and changelog versions aligned", () => {
const packageMetadata = JSON.parse(
readFileSync(resolve(repositoryRoot, "packages/sdk/package.json"), "utf8")
);
Expand All @@ -84,9 +84,9 @@ describe("release workflow contract", () => {
);
const changelog = readFileSync(resolve(repositoryRoot, "CHANGELOG.md"), "utf8");

assert.equal(packageMetadata.version, "1.0.3");
assert.match(runtime, /CURRENT_SDK_VERSION = "1\.0\.3"/);
assert.match(changelog, /^## 1\.0\.3$/m);
assert.equal(packageMetadata.version, "1.0.4");
assert.match(runtime, /CURRENT_SDK_VERSION = "1\.0\.4"/);
assert.match(changelog, /^## 1\.0\.4$/m);
});

test("recognizes standard list-form GitHub Action steps", () => {
Expand Down