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
10 changes: 0 additions & 10 deletions .changeset/distinct-prefix-count.md

This file was deleted.

7 changes: 7 additions & 0 deletions examples/vitepress-basic/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# @cxphoenix/vp-wasm-coding-example-basic

## 0.0.2

### Patch Changes

- Updated dependencies [cb86054]
- @cxphoenix/vp-wasm-coding@0.2.0

## 0.0.1

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion examples/vitepress-basic/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@cxphoenix/vp-wasm-coding-example-basic",
"version": "0.0.1",
"version": "0.0.2",
"private": true,
"type": "module",
"description": "Minimal VitePress consumer proving @cxphoenix/vp-wasm-coding works end-to-end (no COOP/COEP).",
Expand Down
11 changes: 11 additions & 0 deletions packages/vitepress-code-runner/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,16 @@
# @cxphoenix/vp-wasm-coding

## 0.2.0

### Minor Changes

- cb86054: `generate_challenge` params 支援兩個新的參數規格頂層欄位(預設皆為 `false`,未宣告時行為完全不變):

- `distinct: true` — 同一行抽出的值兩兩相異。`int` 與 `enum`(values 先去重)支援;字串型別與 `faker` 宣告即於建構期報錯。值域不足 `count.max` 時建構期報錯;值域恰好等於 `count.max` 時輸出為隨機排列。
- `prefix_count: true` — 行首以 `count.separator` join 語意輸出實際個數 `n`(APCS 慣例的 `n x1 … xn` 格式);適用所有型別;`n = 0` 時該行輸出恰為 `0`。

**行為收緊(請注意)**:params 內的**未知欄位名**(含 `count` 巢狀內)從「靜默忽略」改為**建構期報錯**——拼錯的欄位(如 `"distnct"`、`"prefix-count"`)過去會被無聲丟棄並停用其保證,現在會使 `generate_challenge` 回傳錯誤。若你的 params 夾帶額外鍵(如註解用途的 `"description"`),升級後需移除。完整 schema 見 `crates/random-input-generator/README.md`。

## 0.1.0

### Minor Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/vitepress-code-runner/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@cxphoenix/vp-wasm-coding",
"version": "0.1.0",
"version": "0.2.0",
"description": "VitePress component for a client-side Python coding playground — Pyodide in a Web Worker, AC/WA/RE/TLE verdicts, a bundled random-input generator, and a pluggable editor. No COOP/COEP required.",
"keywords": [
"vitepress",
Expand Down
Loading