@basicbenframework/core 0.1.8 → 0.1.10

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.
@@ -17,12 +17,9 @@ jobs:
17
17
  - name: Setup Node.js
18
18
  uses: actions/setup-node@v4
19
19
  with:
20
- node-version: '24'
20
+ node-version: '25'
21
21
  registry-url: 'https://registry.npmjs.org'
22
22
 
23
- - name: Install test dependencies
24
- run: npm install better-sqlite3
25
-
26
23
  - name: Run tests
27
24
  run: npm test
28
25
 
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@basicbenframework/create",
3
- "version": "0.1.8",
3
+ "version": "0.1.10",
4
4
  "description": "Create a new BasicBen application",
5
5
  "type": "module",
6
6
  "bin": {
@@ -1,3 +1,4 @@
1
+ import { useState, useEffect } from 'react'
1
2
  import { useAuth, useNavigate } from '@basicbenframework/core/client'
2
3
  import { useTheme } from '../components/ThemeContext'
3
4
  import { Card } from '../components/Card'
@@ -9,6 +10,14 @@ export function Home() {
9
10
  const { user } = useAuth()
10
11
  const navigate = useNavigate()
11
12
  const { t, dark } = useTheme()
13
+ const [version, setVersion] = useState(null)
14
+
15
+ useEffect(() => {
16
+ fetch('https://registry.npmjs.org/@basicbenframework/core/latest')
17
+ .then(res => res.json())
18
+ .then(data => setVersion(data.version))
19
+ .catch(() => {})
20
+ }, [])
12
21
 
13
22
  const features = [
14
23
  {
@@ -197,9 +206,9 @@ export default (router) => {
197
206
  )}
198
207
 
199
208
  {/* Footer */}
200
- <footer className={`text-center text-xs ${t.subtle} space-y-2`}>
209
+ <footer className={`text-center text-xs ${t.subtle} space-y-1`}>
201
210
  <p>Built with Node.js built-ins. Inspired by Laravel.</p>
202
- <p>BasicBen v0.1.0</p>
211
+ {version && <p>BasicBen v{version}</p>}
203
212
  </footer>
204
213
  </div>
205
214
  )
package/database.sqlite CHANGED
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@basicbenframework/core",
3
- "version": "0.1.8",
3
+ "version": "0.1.10",
4
4
  "description": "A full-stack framework for React. Minimal dependencies, maximum clarity.",
5
5
  "author": "ctmakes",
6
6
  "repository": {
@@ -45,14 +45,12 @@
45
45
  "minimal"
46
46
  ],
47
47
  "license": "MIT",
48
- "dependencies": {
49
- "better-sqlite3": "^12.6.2"
50
- },
48
+ "dependencies": {},
51
49
  "peerDependencies": {
52
- "@vitejs/plugin-react": ">=5",
53
50
  "react": ">=18",
54
51
  "react-dom": ">=18",
55
- "vite": ">=7"
52
+ "vite": ">=7",
53
+ "@vitejs/plugin-react": ">=5"
56
54
  },
57
55
  "optionalDependencies": {
58
56
  "pg": ">=8"
package/src/index.js CHANGED
@@ -2,7 +2,9 @@
2
2
  * BasicBen framework public API
3
3
  */
4
4
 
5
- export const VERSION = '0.1.0'
5
+ import pkg from '../package.json' with { type: 'json' }
6
+
7
+ export const VERSION = pkg.version
6
8
 
7
9
  // Database
8
10
  export { db, query, getDb, QueryBuilder, Grammar } from './db/index.js'