Skip to content

v1.0.0

Choose a tag to compare

@EightKK EightKK released this 21 Nov 02:06
· 311 commits to main since this release
7e8bfd4

This is the first stable release. From here on the package follows SemVer as defined in Compatibility and versioning, and it is published on npm as @eightkk/vue-weave (npm install @eightkk/vue-weave). The changes below fix data-correctness and compatibility problems found in the pre-release review; the ones that change results or types are listed under "Breaking changes", each with who is affected and what to do.

Breaking changes

  • The package name is now @eightkk/vue-weave (was vue-weave), because npm does not accept the unscoped name. The entries are @eightkk/vue-weave, @eightkk/vue-weave/core, @eightkk/vue-weave/style.css and @eightkk/vue-weave/package.json, and the release tarball is eightkk-vue-weave-<version>.tgz. Who is affected: everyone who installed an earlier tarball. What to do: install @eightkk/vue-weave, remove vue-weave, and replace 'vue-weave' with '@eightkk/vue-weave' in imports (also /core and /style.css). The exports, types and behaviour of each entry are otherwise as described below.
  • fromICalendar now resolves a TZID local time that a daylight-saving change skips as RFC 5545 section 3.3.5 requires: with the UTC offset in effect before the change. DTSTART;TZID=America/New_York:20070311T023000 is now 07:30 UTC (local 03:30) instead of 07:00 UTC. This applies to DTSTART, DTEND and the end of a day or week DURATION. A repeated local time still takes its first occurrence. Who is affected: anyone who imports .ics files with TZID times that fall in a skipped hour; re-importing such a file gives a start or end up to one gap length (usually one hour) later than 0.6.0 did, so events imported with 0.6 and re-imported with 1.0 can differ. What to do: re-import those files if you stored 0.6.0 results and need the RFC times. buildWorkPeriods, calendar bands and editing keep moving a skipped time to the change itself. toICalendar writes UTC and is unaffected.
  • comparePlans now throws when a given successful result does not match the task set of its input: an active task is missing or listed twice, or inactiveTaskIds does not list exactly the inactive tasks (subtasks of an inactive summary included). A result calculated before a task was added, removed or (de)activated used to be compared as a complete plan, with the new task unscheduled and a stale finish. Who is affected: callers who pass a precomputed result that does not exactly match the input (stored, cached or hand-built results). What to do: recalculate the result whenever its input changes, or omit result and let comparePlans calculate it. Only task sets are checked; a result for an earlier version of the same tasks (a changed duration, say) is still not detected, so keep a shared revision if you store results separately from their input.
  • parseFieldValue with a select spec that has multiple: true now always returns an array, also for a single entry ('a' → ['a'], was 'a'). GanttChart's built-in field input therefore proposes arrays for such columns. Who is affected: code reading field-edit after or parseFieldValue results for multiple selects. What to do: expect an array.
  • formatFieldValue for a time field with timeZone now appends the offset to a wall time that occurs twice (for example 2026-11-01 01:30 -05:00 in America/New_York), so the text parses back to the same instant. Who is affected: code that displays, compares or parses this text itself. What to do: accept the ±HH:MM suffix.
  • GanttChart row heading text (vw-row-content) is now a focusable role="button", named by its content, with one Tab stop for the heading column (see "Added"). Who is affected: tests that look up buttons with loose or regular-expression names (for example getByRole('button', { name: /^Task/ })), which can now also match a heading. What to do: use exact names, or exclude the heading.
  • setWindowedView, retryWindowedData and windowedCoverage now throw RangeError for a window whose chunk indices are not safe integers (finite times too far from origin for chunkSize), instead of looping without end. setWindowedView also throws RangeError when the chunk boundaries origin + k·chunkSize of the view are not distinct finite numbers, and windowedCoverage throws when the window's cell count exceeds Number.MAX_SAFE_INTEGER. useWindowedData reports these views through error. Who is affected: only views with extreme ranges or origins, which previously hung. What to do: use a larger chunkSize or an origin closer to the window.
  • Types only: ScheduleGraph (returned by scheduleToGraph) now types nodes as NetworkNode<ScheduleGraphNodeData>[] and edges as GraphEdge<ScheduleGraphEdgeData>[], so node and edge data (critical flag, early dates, lag) can be read without casts. The arrays still assign to NetworkNode[] and GraphEdge[]. Who is affected: code that pushes items with other data into graph.nodes or graph.edges. What to do: copy the arrays into your own NetworkNode[]/GraphEdge[] first.

Added

  • GanttChart rows can be activated from the keyboard. Enter or Space on a row heading emits target-activate with source keyboard. ArrowUp, ArrowDown, Home and End move between headings, through a single roving tab stop. Controls inside a row slot keep their own keys.

Fixed

  • The type declarations of useTimelineView (state) and useEditTransaction (historyReset) no longer use the two-argument ShallowRef<T, T>, which Vue 3.5.0 does not declare, so strict TypeScript projects on the minimum supported Vue (^3.5.0) no longer fail with TS2707.
  • GanttChart cell inputs (plain and typed) and the Escape handling around cell-editor leave Enter and Escape of an input method composition (isComposing or keyCode 229) to the input method. Confirming a Japanese conversion no longer commits the half-typed text or resets the input; a later Enter commits. The built-in inputs also keep the typed text, composed or not, as a draft across re-renders (new bars, row height and other prop changes used to reset it to the source value); a commit, Escape or new source text for that cell ends the draft.
  • Committing unedited text in a typed field cell, or commit(value) with the current value, ends the edit with no field-edit and no validation. Values whose text did not parse back no longer produce changes.
  • parseFieldValue reads select labels as well as values, so the text formatFieldValue shows can be committed again. Duplicate labels are rejected as ambiguous with a choice error and formatted as values. In multiple selects, an entry that contains a comma or a double quote, or starts or ends with whitespace, is written in double quotes with inner quotes doubled (as in CSV), and the parser splits only at unquoted commas, so every valid selection parses back to the same array (Cut, weld is two entries, "Cut, weld" one). A choice with an empty label is written by its value in a single select. A choice set in which some choice has no text that names it (its label and its value both read as other choices, or values such as 1 and '1' with the same text) makes formatFieldValue and parseFieldValue throw an Error, instead of reading a valid value back as another one; give that choice a label of its own.
  • Time fields with timeZone round-trip repeated wall times: format then parse gives back the same instant. Typed text without an offset still resolves to the earlier occurrence.
  • useAsyncGraphLayout now holds the results and failures of the frame being computed apart from its reuse cache. With cacheSize: 0 or 1 a frame no longer re-requests the same layouts forever without being shown. A failed request is no longer silently repeated when its other scope succeeds, so display.source === 'layout' no longer appears next to a stale error. A failed frame is requested again when the input changes. cacheSize now only sets how many layouts are kept for reuse by later inputs.
  • graphLayoutWorkerAdapter rejects a response whose requestId and inputKey match but whose scope differs. It removes its message and abort listeners however a request ends, including when posting the request to the Worker throws (the request then rejects with that error) and when the cancel message cannot be posted.
  • setWindowedView no longer walks every chunk of the time range for a view with an empty rowIds; such a view requests nothing.
  • windowedCoverage no longer counts unloaded cells one at a time. It computes total from the chunk and row counts and counts only the recorded cells, so checking a whole plan over a wide range stays cheap.
  • useWindowedData no longer throws when the first read of condition fails (a getter that throws, or a value that is not a string), including during server rendering. That failure, and a view or condition getter that throws later, which the watcher used to swallow, is reported through error, and the view is requested again once the value is valid.
  • parseWeaveSnapshot and restoreWeaveSnapshot of timeline snapshots, and projectTimelineView without laneCount, no longer throw RangeError: Maximum call stack size exceeded for timelines with very many bars (for example 200,000). GanttChart's fitToBars, NetworkGraph's collapsed-group moves, group frames and actuals diagnostics append large lists with loops for the same reason.

Documentation

  • docs/api.md adds "Compatibility and versioning", which defines what 1.x SemVer covers (exported names and types, component props, events, slots and exposed methods, documented --vw-* custom properties, the snapshot format) and what it does not (exact error message texts, emitted vw- classes, DOM structure and server-rendered markup). Error message formats are documented as current behaviour; match on the error class or diagnostic code/id.
  • The READMEs put installation from npm first, explain the stylesheet import, TypeScript CSS declarations and core-only installs (Vue stays a required peer; use --omit=peer to leave it out), and use image and document links pinned to the release tag so they work on npmjs.com. The GitHub Release tarball remains an offline alternative.
  • CONTRIBUTING describes the manual npm publication of the verified release tarball and the dist.integrity check against its local SHA-512.

Packaging

  • npm run test:package type-checks the packed library against both Vue 3.5.0 (the minimum of the peer range) and the pinned development Vue.