Skip to content

Commit 49d8733

Browse files
committed
docs(genui): document restricted primitives exports breaking change in CHANGELOG.md
1 parent 7bc9578 commit 49d8733

2 files changed

Lines changed: 5 additions & 0 deletions

File tree

packages/genui/CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
- **BREAKING**: Changed `PromptBuilder.chat` and `PromptBuilder.custom` from synchronous factory constructors to asynchronous static methods (`createChat` and `createCustom`) to support asynchronous asset loading.
66
- **BREAKING**: Changed `_loadSchemas` return type to a named record structure.
7+
- **BREAKING**: Restricted public API surface of low-level `primitives` exports. Only `CancellationException`, `CancellationSignal`, `JsonMap`, `basicCatalogId`, `configureLogging`, `genUiLogger`, and `generateId` are now exported from `package:genui/genui.dart`.
78
- **Refactor**: Extracted exception mapping logic to a private helper `_errorToMap` in `SurfaceController`.
89
- **Refactor**: Centralized and shared common schema registry initialization helper.
910
- **Refactor**: Extracted mock binary messenger asset setup to a shared helper for test reuse.

packages/genui/lib/src/utils/stream_extensions.dart

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
// Copyright 2025 The Flutter Authors.
2+
// Use of this source code is governed by a BSD-style license that can be
3+
// found in the LICENSE file.
4+
15
import 'dart:async';
26
import 'package:stream_transform/stream_transform.dart';
37

0 commit comments

Comments
 (0)