fusee-framework 1.1.0 → 1.1.1

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.1.0 — Signals-First JS Framework | Atomic Reactivity | Peak Performance**
2
+ **v1.1.1 — 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, and a comprehensive CLI for instant application scaffolding.
5
5
 
@@ -1,4 +1,3 @@
1
- import type { Signal, Computed } from 'fusee-framework'
2
1
 
3
2
  type CounterProps = {
4
3
  initialValue?: string
@@ -1,4 +1,3 @@
1
- import type { SignalAccessor } from 'fusee-framework'
2
1
  import { Counter } from './Counter.js'
3
2
 
4
3
  type CounterSectionProps = {
@@ -1,4 +1,3 @@
1
- import type { Signal } from 'fusee-framework'
2
1
  import { UserForm } from '../components/UserForm.js'
3
2
  import { CounterSection } from '../components/CounterSection.js'
4
3
 
@@ -1,5 +1,3 @@
1
- import type { Signal } from 'fusee-framework'
2
-
3
1
  type Item = {
4
2
  id: number
5
3
  name: string
package/auto-imports.d.ts CHANGED
@@ -1,10 +1,17 @@
1
- export { }
1
+ /* eslint-disable */
2
+ /* prettier-ignore */
3
+ // @ts-nocheck
4
+ // noinspection JSUnusedGlobalSymbols
5
+ // Generated by unplugin-auto-import
6
+ // biome-ignore lint: disable
7
+ export {}
2
8
  declare global {
3
9
  const batch: typeof import('fusee-framework').batch
4
10
  const computed: typeof import('fusee-framework').computed
5
11
  const defineComponent: typeof import('fusee-framework').defineComponent
6
12
  const effect: typeof import('fusee-framework').effect
7
13
  const mountOutlet: typeof import('fusee-framework').mountOutlet
14
+ const mountTemplate: typeof import('fusee-framework').mountTemplate
8
15
  const onMount: typeof import('fusee-framework').onMount
9
16
  const onUnmount: typeof import('fusee-framework').onUnmount
10
17
  const signal: typeof import('fusee-framework').signal
@@ -137,9 +137,7 @@ export default defineConfig({
137
137
  // 5. Counter component
138
138
  const btnStyle = "background:#ff3333; color:white; border:none; width:50px; height:50px; border-radius:15px; cursor:pointer; font-size:1.5rem; transition: 0.2s;";
139
139
  const counterContent = choice === 'ts'
140
- ? `import type { Signal } from 'fusee-framework'
141
-
142
- interface CounterResult {
140
+ ? `interface CounterResult {
143
141
  count: Signal<number>
144
142
  inc: () => void
145
143
  dec: () => void
@@ -2,3 +2,4 @@
2
2
  export { signal, computed, effect, batch, untrack } from './core/signal.js'
3
3
  export { defineComponent, onMount, onUnmount } from './core/component.js'
4
4
  export { createRouter, navigate, mountOutlet } from './router/router.js'
5
+ export { mountTemplate } from './core/compiler.js'
@@ -4,6 +4,13 @@
4
4
  export * from './signal'
5
5
  export * from './component'
6
6
  export * from './router'
7
+ export * from './compiler'
8
+
9
+ declare global {
10
+ type Signal<T = any> = import('./signal').Signal<T>
11
+ type Computed<T = any> = import('./signal').Computed<T>
12
+ type SignalAccessor<T> = import('./signal').SignalAccessor<T>
13
+ }
7
14
 
8
15
  // Re-export as namespace for convenience
9
16
  export as namespace Fusee
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fusee-framework",
3
- "version": "1.1.0",
3
+ "version": "1.1.1",
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",