Repository navigation
v1.0.0
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(wasvue-weave), because npm does not accept the unscoped name. The entries are@eightkk/vue-weave,@eightkk/vue-weave/core,@eightkk/vue-weave/style.cssand@eightkk/vue-weave/package.json, and the release tarball iseightkk-vue-weave-<version>.tgz. Who is affected: everyone who installed an earlier tarball. What to do: install@eightkk/vue-weave, removevue-weave, and replace'vue-weave'with'@eightkk/vue-weave'in imports (also/coreand/style.css). The exports, types and behaviour of each entry are otherwise as described below. fromICalendarnow resolves aTZIDlocal 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:20070311T023000is now 07:30 UTC (local 03:30) instead of 07:00 UTC. This applies to DTSTART, DTEND and the end of a day or weekDURATION. A repeated local time still takes its first occurrence. Who is affected: anyone who imports.icsfiles withTZIDtimes 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.toICalendarwrites UTC and is unaffected.comparePlansnow throws when a given successfulresultdoes not match the task set of itsinput: an active task is missing or listed twice, orinactiveTaskIdsdoes 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 taskunscheduledand a stale finish. Who is affected: callers who pass a precomputedresultthat does not exactly match the input (stored, cached or hand-built results). What to do: recalculate the result whenever its input changes, or omitresultand letcomparePlanscalculate 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.parseFieldValuewith aselectspec that hasmultiple: truenow 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 readingfield-editafterorparseFieldValueresults for multiple selects. What to do: expect an array.formatFieldValuefor atimefield withtimeZonenow appends the offset to a wall time that occurs twice (for example2026-11-01 01:30 -05:00inAmerica/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:MMsuffix.- GanttChart row heading text (
vw-row-content) is now a focusablerole="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 examplegetByRole('button', { name: /^Task/ })), which can now also match a heading. What to do: use exact names, or exclude the heading. setWindowedView,retryWindowedDataandwindowedCoveragenow throwRangeErrorfor a window whose chunk indices are not safe integers (finite times too far fromoriginforchunkSize), instead of looping without end.setWindowedViewalso throwsRangeErrorwhen the chunk boundariesorigin + k·chunkSizeof the view are not distinct finite numbers, andwindowedCoveragethrows when the window's cell count exceedsNumber.MAX_SAFE_INTEGER.useWindowedDatareports these views througherror. Who is affected: only views with extreme ranges or origins, which previously hung. What to do: use a largerchunkSizeor anorigincloser to the window.- Types only:
ScheduleGraph(returned byscheduleToGraph) now typesnodesasNetworkNode<ScheduleGraphNodeData>[]andedgesasGraphEdge<ScheduleGraphEdgeData>[], so node and edgedata(critical flag, early dates, lag) can be read without casts. The arrays still assign toNetworkNode[]andGraphEdge[]. Who is affected: code that pushes items with other data intograph.nodesorgraph.edges. What to do: copy the arrays into your ownNetworkNode[]/GraphEdge[]first.
Added
- GanttChart rows can be activated from the keyboard. Enter or Space on a row heading emits
target-activatewith sourcekeyboard. ArrowUp, ArrowDown, Home and End move between headings, through a single roving tab stop. Controls inside arowslot keep their own keys.
Fixed
- The type declarations of
useTimelineView(state) anduseEditTransaction(historyReset) no longer use the two-argumentShallowRef<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-editorleave Enter and Escape of an input method composition (isComposingor 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 nofield-editand no validation. Values whose text did not parse back no longer produce changes. parseFieldValuereadsselectlabels as well as values, so the textformatFieldValueshows can be committed again. Duplicate labels are rejected as ambiguous with achoiceerror 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, weldis 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 as1and'1'with the same text) makesformatFieldValueandparseFieldValuethrow anError, instead of reading a valid value back as another one; give that choice a label of its own.- Time fields with
timeZoneround-trip repeated wall times: format then parse gives back the same instant. Typed text without an offset still resolves to the earlier occurrence. useAsyncGraphLayoutnow holds the results and failures of the frame being computed apart from its reuse cache. WithcacheSize: 0or1a 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, sodisplay.source === 'layout'no longer appears next to a staleerror. A failed frame is requested again when the input changes.cacheSizenow only sets how many layouts are kept for reuse by later inputs.graphLayoutWorkerAdapterrejects a response whoserequestIdandinputKeymatch but whosescopediffers. It removes itsmessageand 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.setWindowedViewno longer walks every chunk of the time range for a view with an emptyrowIds; such a view requests nothing.windowedCoverageno longer counts unloaded cells one at a time. It computestotalfrom the chunk and row counts and counts only the recorded cells, so checking a whole plan over a wide range stays cheap.useWindowedDatano longer throws when the first read ofconditionfails (a getter that throws, or a value that is not a string), including during server rendering. That failure, and avieworconditiongetter that throws later, which the watcher used to swallow, is reported througherror, and the view is requested again once the value is valid.parseWeaveSnapshotandrestoreWeaveSnapshotof timeline snapshots, andprojectTimelineViewwithoutlaneCount, no longer throwRangeError: Maximum call stack size exceededfor timelines with very many bars (for example 200,000). GanttChart'sfitToBars, NetworkGraph's collapsed-group moves, group frames and actuals diagnostics append large lists with loops for the same reason.
Documentation
docs/api.mdadds "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, emittedvw-classes, DOM structure and server-rendered markup). Error message formats are documented as current behaviour; match on the error class or diagnosticcode/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=peerto 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.integritycheck against its local SHA-512.
Packaging
npm run test:packagetype-checks the packed library against both Vue 3.5.0 (the minimum of the peer range) and the pinned development Vue.