@hyperfixi/vite-plugin 2.8.0 → 2.9.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.
Files changed (2) hide show
  1. package/CHANGELOG.md +68 -0
  2. package/package.json +5 -4
package/CHANGELOG.md ADDED
@@ -0,0 +1,68 @@
1
+ # Changelog
2
+
3
+ All notable changes to @hyperfixi/vite-plugin will be documented in this file.
4
+
5
+ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
6
+ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
+
8
+ > **Note:** since the 1.0.0 entry below, this package versions in lockstep with the
9
+ > hyperfixi monorepo (2.x). Per-release details live in the repository's
10
+ > [GitHub Releases](https://github.com/codetalcott/hyperfixi/releases); this file is
11
+ > not updated per release.
12
+
13
+ ## [1.0.0] - 2025-01-19
14
+
15
+ ### Added
16
+
17
+ - Zero-config Vite plugin for automatic hyperscript bundle generation
18
+ - Automatic detection of `_="..."` attributes in HTML, Vue, Svelte, JSX/TSX files
19
+ - Command usage scanning and analysis
20
+ - Block command detection (if, repeat, for, while, async, fetch, etc.)
21
+ - Positional expression detection (first, last, next, previous, etc.)
22
+ - htmx compatibility mode
23
+ - Multilingual keyword detection for 23 languages
24
+ - Custom keyword registration API
25
+ - Bundle size optimization with tree-shaking
26
+ - HMR (Hot Module Replacement) support
27
+ - Debug mode with verbose logging
28
+ - Configuration options for extra commands and features
29
+
30
+ ### Features
31
+
32
+ - Scans project files for hyperscript usage
33
+ - Generates minimal bundle with only used commands
34
+ - Supports custom command additions via config
35
+ - Detects block commands automatically
36
+ - Handles multilingual hyperscript (if enabled)
37
+ - Framework-agnostic (works with any Vite project)
38
+ - Real-time bundle regeneration on file changes
39
+
40
+ ### Configuration Options
41
+
42
+ ```javascript
43
+ lokascript({
44
+ extraCommands: ['fetch', 'send'], // Always include these
45
+ extraBlocks: ['if', 'repeat'], // Always include these blocks
46
+ positional: true, // Include positional expressions
47
+ htmx: true, // Enable htmx compatibility
48
+ languages: ['en', 'ja', 'es'], // Multilingual support
49
+ debug: true, // Verbose logging
50
+ });
51
+ ```
52
+
53
+ ### Performance
54
+
55
+ - Typical bundle sizes: 8-28KB (depending on commands used)
56
+ - Fast scanning: < 100ms for typical projects
57
+ - Incremental updates via HMR
58
+
59
+ ### Compatibility
60
+
61
+ - Vite 4, 5, 6, 7+ supported
62
+ - Node.js 18+ required
63
+
64
+ ### Notes
65
+
66
+ - This is the first stable 1.0 release
67
+ - API is stable and ready for production use
68
+ - Breaking changes from 0.x: Configuration format standardized
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hyperfixi/vite-plugin",
3
- "version": "2.8.0",
3
+ "version": "2.9.1",
4
4
  "description": "Vite plugin for automatic tree-shaken hyperscript bundles",
5
5
  "type": "module",
6
6
  "main": "dist/index.cjs",
@@ -15,7 +15,8 @@
15
15
  },
16
16
  "files": [
17
17
  "dist/",
18
- "README.md"
18
+ "README.md",
19
+ "CHANGELOG.md"
19
20
  ],
20
21
  "scripts": {
21
22
  "build": "tsup",
@@ -29,7 +30,7 @@
29
30
  "test:check": "VITEST_QUIET=1 bash ../../scripts/vitest-run.sh --reporter=dot"
30
31
  },
31
32
  "peerDependencies": {
32
- "@hyperfixi/server-bridge": "^2.8.0",
33
+ "@hyperfixi/server-bridge": "^2.9.1",
33
34
  "vite": ">=4.0.0"
34
35
  },
35
36
  "peerDependenciesMeta": {
@@ -38,7 +39,7 @@
38
39
  }
39
40
  },
40
41
  "dependencies": {
41
- "@hyperfixi/core": "^2.8.0",
42
+ "@hyperfixi/core": "^2.9.1",
42
43
  "glob": "^11.0.0"
43
44
  },
44
45
  "devDependencies": {