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 +1 -1
- package/auto-imports.d.ts +0 -1
- package/framework/auto-import-preset.js +1 -1
- package/framework/core/signal.js +0 -26
- package/framework/index.js +1 -1
- package/framework/types/signal.d.ts +0 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
# Fusée Framework 🚀
|
|
2
|
-
**v1.5.
|
|
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
package/framework/core/signal.js
CHANGED
|
@@ -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
|
package/framework/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// ─── Framework Public API ─────────────────────────────────────────────────────
|
|
2
|
-
export { signal, computed, effect, batch, untrack, inspect, watch
|
|
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
|