fusee-framework 1.5.1 → 1.5.2

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.
package/README.md CHANGED
@@ -1,5 +1,5 @@
1
1
  # Fusée Framework 🚀
2
- **v1.5.1 — Signals-First JS Framework | Atomic Reactivity | Peak Performance**
2
+ **v1.5.2 — Signals-First JS Framework | Atomic Reactivity | Peak Performance**
3
3
 
4
4
  Fusée is a custom, high-performance fine-grained reactive JavaScript framework built for speed and simplicity. It features a recursive, non-greedy compiler, a signals-based reactivity engine, Dependency Injection for components and a comprehensive CLI for instant application scaffolding.
5
5
 
package/auto-imports.d.ts CHANGED
@@ -23,5 +23,4 @@ declare global {
23
23
  const signal: typeof import('fusee-framework').signal
24
24
  const untrack: typeof import('fusee-framework').untrack
25
25
  const watch: typeof import('fusee-framework').watch
26
- const watchEffect: typeof import('fusee-framework').watchEffect
27
26
  }
@@ -1,6 +1,6 @@
1
1
  export const FuseePreset = {
2
2
  'fusee-framework': [
3
- 'signal', 'computed', 'effect', 'watch', 'watchEffect',
3
+ 'signal', 'computed', 'effect', 'watch',
4
4
  'batch', 'untrack', 'inspect',
5
5
  'defineComponent', 'onMount', 'onUnmount',
6
6
  'directive',
@@ -238,32 +238,6 @@ export function watch(source, callback, options = {}) {
238
238
  }
239
239
  }
240
240
 
241
- export function watchEffect(fn) {
242
- if (typeof fn !== 'function') {
243
- console.warn('[framework] watchEffect() expects a function')
244
- return () => { }
245
- }
246
-
247
- const cleanupRef = { fn: null }
248
- const onCleanup = (cleanup) => {
249
- if (typeof cleanup !== 'function') {
250
- console.warn('[framework] onCleanup() expects a function')
251
- return
252
- }
253
- cleanupRef.fn = cleanup
254
- }
255
-
256
- const stopEffect = effect(() => {
257
- runWatchCleanup(cleanupRef)
258
- fn(onCleanup)
259
- })
260
-
261
- return () => {
262
- stopEffect()
263
- runWatchCleanup(cleanupRef)
264
- }
265
- }
266
-
267
241
  export function inspect(...args) {
268
242
  const isDev = typeof import.meta.env !== 'undefined' ? !!import.meta.env.DEV : true
269
243
  if (!isDev) return
@@ -1,5 +1,5 @@
1
1
  // ─── Framework Public API ─────────────────────────────────────────────────────
2
- export { signal, computed, effect, batch, untrack, inspect, watch, watchEffect } from './core/signal.js'
2
+ export { signal, computed, effect, batch, untrack, inspect, watch } from './core/signal.js'
3
3
  export { defineComponent, defineAsyncComponent, onMount, onUnmount, parseSlots, provide, inject, getCurrentInstance } from './core/component.js'
4
4
  export { createRouter, navigate, mountOutlet } from './router/router.js'
5
5
  export { mountTemplate } from './core/compiler.js'
@@ -72,7 +72,6 @@ export declare function watch<T extends any[]>(
72
72
  callback: (newValue: T, oldValue: T | undefined, onCleanup: (fn: () => void) => void) => void,
73
73
  options?: WatchOptions
74
74
  ): () => void
75
- export declare function watchEffect(fn: (onCleanup: (fn: () => void) => void) => void): () => void
76
75
  export declare function inspect(...args: any[]): (() => void) | void
77
76
 
78
77
  declare function setEffectHook(fn: (eff: any) => void): void
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fusee-framework",
3
- "version": "1.5.1",
3
+ "version": "1.5.2",
4
4
  "description": "Fusée - Signals-first JS Framework | Peak Performance",
5
5
  "main": "framework/index.js",
6
6
  "types": "framework/types/index.d.ts",