Changes for 0.7.0#195
Merged
Merged
Conversation
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
- event_bus/bus.rs: remove redundant explicit link targets on StdOutSink and EventSink (rustdoc::redundant-explicit-links) - state.rs: remove duplicate code block stanza that left an orphaned closing fence, triggering rustdoc::invalid-rust-codeblocks Fixes all three -D warnings failures in the nightly doc job. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
This PR prepares the 0.7.0 release of Weavegraph. The branch comprises several large commits of targeted revision work, documentation improvements, breaking API removals, and a license change from MIT to Apache-2.0. The release includes over 6K lines of net code reduction through module-wide refactoring, dead code removal, documentation condensing, and control flow simplification across the entire codebase, while maintaining backward compatibility where possible and clearly documenting breaking changes.
Type of Change
Changes Made
License & Legal
Core API Changes & Breaking Items
LLMStreamingEvent::new(...)constructor; useLLMStreamingEvent::builder(chunk)or factory methods (chunk_event,final_event,error_event)emit_node()method; useemit(scope, message)insteadPersistenceError::MissingFieldandSQLiteCheckpointerError; useCheckpointerErrordirectlycheckpointer_postgres_helpersandcheckpointer_sqlite_helpersare now private implementation detailsIdError,ParsedId,IdGenerator::{generate_uuid, generate_random_id, parse_id, current_counter, reset_counter},id_utils,JsonValueExt::deep_clone,merge_inspector,message_id_helpers,type_guardssqlxchecksum error on nextconnect()call — no schema changes, only checksum record correction required. See v0.7.0 migration guide.Public API Improvements
LLMStreamingEventBuilder— fluent builder for constructing LLM streaming events with optionalsession_id,node_id,stream_id,is_final,scope,metadata,timestampfieldsconditional_edges()now returns&[ConditionalEdge]instead of&Vec<ConditionalEdge>(transparently coercible; explicit&Vec<_>annotations should be updated)WeaveErrornow derivesDefaultMetricsObserversimplification — now uses default no-opRuntimeObserver::on_invocation_startimplementationCode Quality & Maintenance
src/app.rs,src/channels/,src/control.rs,src/event_bus/,src/graphs/,src/llm/,src/message.rs,src/node.rs,src/reducers/,src/runtimes/,src/schedulers/,src/state.rs,src/telemetry/,src/types.rs,src/utils/EventBus::with_sink,Channel::set_version,VersionedStateBuilder#[must_use]from mutatingVersionedState::{add_message, add_extra}methodsIdGeneratordoctest reserved keyword issue)Documentation
docs/MIGRATION.mdwith comprehensive v0.7.0 migration guide for SQL checksum mismatchdocs/ARCHITECTURE.mdand other architecture docs for clarityexamples/README.mdCHANGELOG.mdwith complete 0.7.0 release notesTesting
cargo test)cargo clippy)cargo fmt)cargo +nightly doc)Checklist
cargo fmt)cargo clippy)Breaking Changes
This is a breaking release — 0.7.0. Migration is straightforward for most users:
API Removals: Update imports and usages:
LLMStreamingEvent::new(...)→LLMStreamingEvent::builder(chunk).build()NodeContext::emit_node(...)→NodeContext::emit(scope, message)Migration SQL Checksum (All Persistence Users):
postgres-migrationsfeature enabledsqlxchecksum validation error on next app startupSee
CHANGELOG.md[0.7.0] section and docs/MIGRATION.md for complete details.Additional Notes