@anchorlib/svelte 1.0.0 → 1.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/index.d.ts +2 -2
  2. package/package.json +5 -7
package/dist/index.d.ts CHANGED
@@ -1,3 +1,3 @@
1
- import { ASYNC_STATUS, AnchorSettings, AsyncHandler, AsyncOptions, AsyncState, BatchHandler, CookieEntry, CookieJar, CookieOptions, Debouncer, DerivedRef, EffectHandler, FetchOptions, FetchState, FetchStatus, Future, HistoryOptions, HistoryState, Immutable, ImmutableOutput, ImmutableRef, MicroBatch, MicroLooper, MicroPusher, MicroTask, ModelError, ModelInput, ModelObject, Mutable, MutablePart, MutableRef, PushHandler, State, StateChange, StateException, StateExceptionHandler, StateObserver, StateOptions, StateSubscriber, StateUnsubscribe, TaskHandler, Writable, anchor, awaited, cookies, createContext, createLifecycle, debouncer, decodeCookies, derived, effect, encodeCookies, exception, fetchState, form, getContext, getCookieJar, history, immutable, isImmutableRef, isMutableRef, isValueRef, microbatch, microloop, micropush, microtask, model, mutable, ordered, query, setContext, setCookieContext, setReactive, shortId, snapshot, streamState, stringify, subscribe, undoable, untrack, withIsolation, withScope, writable } from "@anchorlib/core";
1
+ import { ASYNC_STATUS, AnchorSettings, AsyncHandler, AsyncOptions, AsyncState, BatchHandler, CookieEntry, CookieJar, CookieOptions, Debouncer, DerivedRef, EffectHandler, ExceptionMap, FetchOptions, FetchState, FetchStatus, Future, HistoryOptions, HistoryState, Immutable, ImmutableOutput, ImmutableRef, MicroBatch, MicroLooper, MicroPusher, MicroTask, ModelError, ModelInput, ModelObject, Mutable, MutablePart, MutableRef, PushHandler, State, StateChange, StateException, StateExceptionHandler, StateObserver, StateOptions, StateSubscriber, StateUnsubscribe, TaskHandler, Writable, anchor, awaited, cookies, createContext, createLifecycle, debouncer, decodeCookies, derived, effect, encodeCookies, exception, fetchState, form, getContext, getCookieJar, history, immutable, isImmutableRef, isMutableRef, isValueRef, microbatch, microloop, micropush, microtask, model, mutable, ordered, query, setContext, setCookieContext, setReactive, shortId, snapshot, streamState, stringify, subscribe, undoable, untrack, withIsolation, withScope, writable } from "@anchorlib/core";
2
2
  import { WORKFLOW_STATUS, WORKFLOW_STORE, plan } from "@anchorlib/core/workflow";
3
- export { ASYNC_STATUS, type AnchorSettings, type AsyncHandler, type AsyncOptions, type AsyncState, type BatchHandler, type CookieEntry, CookieJar, type CookieOptions, type Debouncer, DerivedRef, type EffectHandler, type FetchOptions, type FetchState, FetchStatus, type Future, type HistoryOptions, type HistoryState, type Immutable, type ImmutableOutput, ImmutableRef, type MicroBatch, type MicroLooper, type MicroPusher, type MicroTask, type ModelError, type ModelInput, type ModelObject, type Mutable, type MutablePart, MutableRef, type PushHandler, type State, type StateChange, type StateException, type StateExceptionHandler, type StateObserver, type StateOptions, type StateSubscriber, type StateUnsubscribe, type TaskHandler, WORKFLOW_STATUS, WORKFLOW_STORE, type Writable, anchor, awaited, cookies, createContext, createLifecycle, debouncer, decodeCookies, derived, effect, encodeCookies, exception, fetchState, form, getContext, getCookieJar, history, immutable, isImmutableRef, isMutableRef, isValueRef, microbatch, microloop, micropush, microtask, model, mutable, ordered, plan, query, setContext, setCookieContext, setReactive, shortId, snapshot, streamState, stringify, subscribe, undoable, untrack, withIsolation, withScope, writable };
3
+ export { ASYNC_STATUS, type AnchorSettings, type AsyncHandler, type AsyncOptions, type AsyncState, type BatchHandler, type CookieEntry, CookieJar, type CookieOptions, type Debouncer, DerivedRef, type EffectHandler, type ExceptionMap, type FetchOptions, type FetchState, FetchStatus, type Future, type HistoryOptions, type HistoryState, type Immutable, type ImmutableOutput, ImmutableRef, type MicroBatch, type MicroLooper, type MicroPusher, type MicroTask, type ModelError, type ModelInput, type ModelObject, type Mutable, type MutablePart, MutableRef, type PushHandler, type State, type StateChange, type StateException, type StateExceptionHandler, type StateObserver, type StateOptions, type StateSubscriber, type StateUnsubscribe, type TaskHandler, WORKFLOW_STATUS, WORKFLOW_STORE, type Writable, anchor, awaited, cookies, createContext, createLifecycle, debouncer, decodeCookies, derived, effect, encodeCookies, exception, fetchState, form, getContext, getCookieJar, history, immutable, isImmutableRef, isMutableRef, isValueRef, microbatch, microloop, micropush, microtask, model, mutable, ordered, plan, query, setContext, setCookieContext, setReactive, shortId, snapshot, streamState, stringify, subscribe, undoable, untrack, withIsolation, withScope, writable };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@anchorlib/svelte",
3
- "version": "1.0.0",
3
+ "version": "1.1.0",
4
4
  "description": "Svelte bindings for Anchor reactive state management",
5
5
  "keywords": [
6
6
  "state",
@@ -63,10 +63,6 @@
63
63
  "publishConfig": {
64
64
  "access": "public"
65
65
  },
66
- "dependencies": {
67
- "@anchorlib/core": "^1.0.0",
68
- "@anchorlib/storage": "^1.0.0"
69
- },
70
66
  "devDependencies": {
71
67
  "@biomejs/biome": "2.3.3",
72
68
  "@sveltejs/vite-plugin-svelte": "^5.0.0",
@@ -84,14 +80,16 @@
84
80
  "vitest": "^3.2.4"
85
81
  },
86
82
  "peerDependencies": {
83
+ "@anchorlib/core": "^1.1.0",
84
+ "@anchorlib/storage": "^1.1.0",
87
85
  "svelte": "^5.0.0",
88
86
  "typescript": "^5.9.3"
89
87
  },
90
88
  "scripts": {
91
89
  "dev": "rimraf dist && tsdown --watch ./src",
92
90
  "clean": "rimraf dist",
93
- "build": "rimraf dist && tsdown && publint",
94
- "prepublish": "rimraf dist && tsdown && publint",
91
+ "build": "bun run clean && tsdown && publint",
92
+ "prepublish": "bun run format && bun run build",
95
93
  "format": "biome format --write",
96
94
  "test": "rimraf coverage && vitest --run",
97
95
  "test:preview": "rimraf coverage && vitest --run && vite preview --outDir coverage"