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
6 changes: 0 additions & 6 deletions .changeset/fix-import-older-versions.md

This file was deleted.

28 changes: 0 additions & 28 deletions .changeset/turtle-speed-hops.md

This file was deleted.

30 changes: 30 additions & 0 deletions packages/hyperbook/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,35 @@
# hyperbook

## 0.107.7

### Patch Changes

- [`eae4590`](https://github.com/openpatch/hyperbook/commit/eae45909fcc9889d40f66c3e5e86f58c47ea206c) Thanks [@mikebarkmin](https://github.com/mikebarkmin)! - Fix importing JSON exports from older Dexie database versions. The manual import now passes `acceptVersionDiff` and `acceptMissingTables` (matching the cloud import path) and re-applies v6/v7 data migrations to imported rows.

- [#1181](https://github.com/openpatch/hyperbook/pull/1181) [`d35a75f`](https://github.com/openpatch/hyperbook/commit/d35a75f7db10ff218443f81d42614d97e35a73bb) Thanks [@mikebarkmin](https://github.com/mikebarkmin)! - **pyide turtle**: `speed()` now animates like CPython's `turtle` module.

Previously `speed()` set the inter-command delay to `300 / speed`, so the turtle jumped a whole
command at a time and only the pause between commands changed; `speed(10.2)` and `speed(10.4)` were
indistinguishable from `speed(10)`, and `speed(11)` snapped to instant. Moves and turns are now
split into sub-steps (hops) using CPython's formulas — `1 + int(distance / (3 * 1.1**speed * speed))`
for moves and `1 + int(abs(angle) / (3 * speed))` for turns — so the line visibly crawls along its
path and higher speeds draw in fewer, larger chunks. `delay()` / `tracer()` once again control the
per-hop screen delay independently (default 10 ms, matching CPython), instead of being overwritten
by `speed()`.

As in CPython, the hops are transient: they animate the cursor and stretch a throwaway line from the
start of the move, and only the move's endpoint becomes permanent geometry. Subdivision is also
skipped entirely when `speed(0)` is set or `tracer()` is anything other than 1, matching CPython's
`if self._speed and screen._tracing == 1` guard.

`setheading()` (and `home()`, which uses it) now folds the turn into `[-180, 180)` before rotating,
so it always takes the short way round — `left(270)` followed by `setheading(0)` turns 90° counter-
clockwise, not 270° clockwise. `left()` / `right()` still sweep the raw angle they were given, so
`left(360)` animates a full revolution.

Because the default delay drops from 80 ms to CPython's 10 ms, existing books will draw noticeably
faster at the default `speed(3)` for short moves, while long moves keep a comparable overall pace.

## 0.107.6

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/hyperbook/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "hyperbook",
"version": "0.107.6",
"version": "0.107.7",
"author": "Mike Barkmin",
"homepage": "https://github.com/openpatch/hyperbook#readme",
"license": "MIT",
Expand Down
30 changes: 30 additions & 0 deletions packages/markdown/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,35 @@
# @hyperbook/markdown

## 0.79.4

### Patch Changes

- [`eae4590`](https://github.com/openpatch/hyperbook/commit/eae45909fcc9889d40f66c3e5e86f58c47ea206c) Thanks [@mikebarkmin](https://github.com/mikebarkmin)! - Fix importing JSON exports from older Dexie database versions. The manual import now passes `acceptVersionDiff` and `acceptMissingTables` (matching the cloud import path) and re-applies v6/v7 data migrations to imported rows.

- [#1181](https://github.com/openpatch/hyperbook/pull/1181) [`d35a75f`](https://github.com/openpatch/hyperbook/commit/d35a75f7db10ff218443f81d42614d97e35a73bb) Thanks [@mikebarkmin](https://github.com/mikebarkmin)! - **pyide turtle**: `speed()` now animates like CPython's `turtle` module.

Previously `speed()` set the inter-command delay to `300 / speed`, so the turtle jumped a whole
command at a time and only the pause between commands changed; `speed(10.2)` and `speed(10.4)` were
indistinguishable from `speed(10)`, and `speed(11)` snapped to instant. Moves and turns are now
split into sub-steps (hops) using CPython's formulas — `1 + int(distance / (3 * 1.1**speed * speed))`
for moves and `1 + int(abs(angle) / (3 * speed))` for turns — so the line visibly crawls along its
path and higher speeds draw in fewer, larger chunks. `delay()` / `tracer()` once again control the
per-hop screen delay independently (default 10 ms, matching CPython), instead of being overwritten
by `speed()`.

As in CPython, the hops are transient: they animate the cursor and stretch a throwaway line from the
start of the move, and only the move's endpoint becomes permanent geometry. Subdivision is also
skipped entirely when `speed(0)` is set or `tracer()` is anything other than 1, matching CPython's
`if self._speed and screen._tracing == 1` guard.

`setheading()` (and `home()`, which uses it) now folds the turn into `[-180, 180)` before rotating,
so it always takes the short way round — `left(270)` followed by `setheading(0)` turns 90° counter-
clockwise, not 270° clockwise. `left()` / `right()` still sweep the raw angle they were given, so
`left(360)` animates a full revolution.

Because the default delay drops from 80 ms to CPython's 10 ms, existing books will draw noticeably
faster at the default `speed(3)` for short moves, while long moves keep a comparable overall pace.

## 0.79.3

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/markdown/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@hyperbook/markdown",
"version": "0.79.3",
"version": "0.79.4",
"author": "Mike Barkmin",
"homepage": "https://github.com/openpatch/hyperbook#readme",
"license": "MIT",
Expand Down
7 changes: 7 additions & 0 deletions platforms/vscode/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# @hyperbook/vscode-extension

## 0.55.4

### Patch Changes

- Updated dependencies [[`eae4590`](https://github.com/openpatch/hyperbook/commit/eae45909fcc9889d40f66c3e5e86f58c47ea206c), [`d35a75f`](https://github.com/openpatch/hyperbook/commit/d35a75f7db10ff218443f81d42614d97e35a73bb)]:
- @hyperbook/markdown@0.79.4

## 0.55.3

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion platforms/vscode/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
},
"homepage": "https://hyperbook.openpatch.org",
"main": "./out/extension.js",
"version": "0.55.3",
"version": "0.55.4",
"engines": {
"vscode": "^1.125.0"
},
Expand Down