mini_program_sdk 0.3.5
mini_program_sdk: ^0.3.5 copied to clipboard
Portable runtime SDK for the Flutter mini-program platform.
Changelog #
0.3.5 #
- make
MiniProgramBackendEndpoint.enableLocalLoopbackFallbackactive for publisher backend calls so local mock backend URLs can fall back between127.0.0.1/localhostand Android emulator10.0.2.2
0.3.4 #
- add
MiniProgramBackendStore,MiniProgramBackendSnapshot,MiniProgramBackendQuery, and binding resolution for lazy publisher backend data state - add
miniProgramBackendQueryactions that call the existing publisher backend connector, store loading/success/error state by request id, and trigger bound UI rebuilds - add
miniProgramBackendBuilderfor loading, error, child, empty, and simple repeated item templates with{{backend.*}}and{{item.*}}bindings
0.3.3 #
- add lazy publisher-owned backend connector APIs for mini-program server calls without putting publisher backend secrets in the host app
- extend
MiniProgramEndpointwith optionalbackendconfiguration and routeminiProgramBackendStac actions by the current mini-program appId - keep backend HTTP clients lazy, cache GET calls only with explicit TTL, reject absolute action URLs, and send delivery access keys to publisher backends only when explicitly enabled
0.3.2 #
- add the MiniProgram Tools VS Code Marketplace link and install command to the README so host app developers can discover guided setup and diagnostics
0.3.1 #
- add
MiniProgramEndpoint.public(...)for public/static CDN, GitHub Pages, and demo mini-program delivery without a MiniProgram access key - allow
MiniProgramEndpoint.accessKeyto be null for public endpoints while keeping protected endpoint access-key validation unchanged
0.3.0 #
- add
MiniProgramEndpointandEndpointRoutingMiniProgramSourceso one host app can open many mini-programs from different API base URLs by appId - add MiniProgram access key support through the
x-mini-program-access-keyHTTP request header - document pairing this header with backend-side key validation for protected multi-publisher endpoints
- keep UI launch calls appId-only while endpoint config owns server/API and access-key routing
0.2.0 #
- add
MiniProgramScope,MiniProgramController,MiniProgramConfig,MiniProgramLaunchOptions, andMiniProgramLauncheras the primary host-owned app integration API - keep
MaterialApp, router, theme, localization, state management, and navigator setup fully owned by the host app - deprecate the free
openMiniProgram(...)helper andMiniProgramLauncherButtonin favor of scope-based launching - add lazy runtime creation and owned-source disposal support
0.1.3 #
- replace the minimal spinner with a full-screen branded loading surface so cloud-hosted mini-program launches do not show a blank page during manifest and screen fetches
- make
MiniProgramPagerender a scaffolded loading state with the resolved mini-program title before the delivered screen is ready - refresh README examples around generated host app usage and cloud backend build/run defines
0.1.2 #
- add
LocalMiniProgramBackendDefaultsso host apps can resolve target-aware local backend URLs from one shared SDK helper - keep stable local defaults for Android emulator, desktop, Chrome on the same machine, and iOS simulators while preserving explicit base-URL and host/port override support
- document the local backend conditions for emulator, USB
adb reverse, and physical-device Wi-Fi workflows
0.1.1 #
- add local loopback fallback in
HttpMiniProgramSourceso local Android development can retry between10.0.2.2and127.0.0.1when the first local backend transport path is unavailable - add regression coverage for transport fallback while keeping normal HTTP backend error handling unchanged
0.1.0 #
- first public release of the portable Flutter mini-program runtime SDK
- add
MiniProgramRuntime,MiniProgramRuntimeScope, andMiniProgramPage - add
openMiniProgram(...)andMiniProgramLauncherButton - add manifest loading, capability validation, feature flags, and cache helpers
- add host bridge dispatch and Stac-based rendering support