@atom.io/template-react-node-backend 0.0.67 → 0.0.68

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.
@@ -7,9 +7,9 @@ dist/index.html 0.45 kB │ gzip: 0.29 kB
7
7
  dist/assets/index-NoNSZ6e2.css 2.97 kB │ gzip: 1.01 kB
8
8
  dist/assets/index-D7LYKGxb.js 517.15 kB │ gzip: 136.73 kB
9
9
 
10
+ ✓ built in 375ms
10
11
  [plugin builtin:vite-reporter]
11
12
  (!) Some chunks are larger than 500 kB after minification. Consider:
12
13
  - Using dynamic import() to code-split the application
13
14
  - Use build.rolldownOptions.output.codeSplitting to improve chunking: https://rolldown.rs/reference/OutputOptions.codeSplitting
14
15
  - Adjust chunk size limit for this warning via build.chunkSizeWarningLimit.
15
- ✓ built in 380ms
package/CHANGELOG.md CHANGED
@@ -1,5 +1,14 @@
1
1
  # @atom.io/template-react-node-backend
2
2
 
3
+ ## 0.0.68
4
+
5
+ ### Patch Changes
6
+
7
+ - 26697cd: Replace template boilerplate READMEs with generated-project guides.
8
+ - Updated dependencies [26697cd]
9
+ - Updated dependencies [03d6465]
10
+ - atom.io@0.47.4
11
+
3
12
  ## 0.0.67
4
13
 
5
14
  ### Patch Changes
package/README.md CHANGED
@@ -1,75 +1,43 @@
1
- # React + TypeScript + Vite
1
+ # React Node Backend
2
2
 
3
- This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules.
3
+ A React + Vite starter with a tiny Node API, a mock auth service, and `atom.io`
4
+ state on the client.
4
5
 
5
- Currently, two official plugins are available:
6
+ ## What It Shows
6
7
 
7
- - [@vitejs/plugin-react](https://github.com/vitejs/vite-plugin-react/blob/main/packages/plugin-react) uses [Babel](https://babeljs.io/) (or [oxc](https://oxc.rs) when used in [rolldown-vite](https://vite.dev/guide/rolldown)) for Fast Refresh
8
- - [@vitejs/plugin-react-swc](https://github.com/vitejs/vite-plugin-react/blob/main/packages/plugin-react-swc) uses [SWC](https://swc.rs/) for Fast Refresh
8
+ - loadable atoms for remote todo data
9
+ - atom families for individual records
10
+ - optimistic create, update, and delete flows
11
+ - selectors for derived todo stats
12
+ - cookie-based auth against a backend-shaped local service
9
13
 
10
- ## React Compiler
14
+ ## Run It
11
15
 
12
- The React Compiler is enabled on this template. See [this documentation](https://react.dev/learn/react-compiler) for more information.
13
-
14
- Note: This will impact Vite dev & build performances.
15
-
16
- ## Expanding the ESLint configuration
16
+ ```sh
17
+ npm run dev
18
+ ```
17
19
 
18
- If you are developing a production application, we recommend updating the configuration to enable type-aware lint rules:
20
+ The dev script starts three processes:
19
21
 
20
- ```js
21
- export default defineConfig([
22
- globalIgnores(["dist"]),
23
- {
24
- files: ["**/*.{ts,tsx}"],
25
- extends: [
26
- // Other configs...
22
+ - Vite app at `http://localhost:5173`
23
+ - Todo API at `http://localhost:3000`
24
+ - Mock authenticator at `http://localhost:4000`
27
25
 
28
- // Remove tseslint.configs.recommended and replace with this
29
- tseslint.configs.recommendedTypeChecked,
30
- // Alternatively, use this for stricter rules
31
- tseslint.configs.strictTypeChecked,
32
- // Optionally, add this for stylistic rules
33
- tseslint.configs.stylisticTypeChecked,
26
+ Build and preview the frontend with the same local services:
34
27
 
35
- // Other configs...
36
- ],
37
- languageOptions: {
38
- parserOptions: {
39
- project: ["./tsconfig.node.json", "./tsconfig.app.json"],
40
- tsconfigRootDir: import.meta.dirname,
41
- },
42
- // other options...
43
- },
44
- },
45
- ])
28
+ ```sh
29
+ npm run build
30
+ npm run preview
46
31
  ```
47
32
 
48
- You can also install [eslint-plugin-react-x](https://github.com/Rel1cx/eslint-react/tree/main/packages/plugins/eslint-plugin-react-x) and [eslint-plugin-react-dom](https://github.com/Rel1cx/eslint-react/tree/main/packages/plugins/eslint-plugin-react-dom) for React-specific lint rules:
33
+ ## Where To Look
49
34
 
50
- ```js
51
- // eslint.config.js
52
- import reactX from "eslint-plugin-react-x"
53
- import reactDom from "eslint-plugin-react-dom"
35
+ - `src/App.tsx`: the React UI, loadable atoms, atom families, optimistic writes, and derived stats.
36
+ - `node/server.ts`: in-memory todo API, auth cookie handling, and a server-side atom for slow-load toggles.
37
+ - `node/authenticator.ts`: mock login service that redirects back to the API.
54
38
 
55
- export default defineConfig([
56
- globalIgnores(["dist"]),
57
- {
58
- files: ["**/*.{ts,tsx}"],
59
- extends: [
60
- // Other configs...
61
- // Enable lint rules for React
62
- reactX.configs["recommended-typescript"],
63
- // Enable lint rules for React DOM
64
- reactDom.configs.recommended,
65
- ],
66
- languageOptions: {
67
- parserOptions: {
68
- project: ["./tsconfig.node.json", "./tsconfig.app.json"],
69
- tsconfigRootDir: import.meta.dirname,
70
- },
71
- // other options...
72
- },
73
- },
74
- ])
75
- ```
39
+ ## Next Ideas
40
+
41
+ - Swap the in-memory SQLite database for a file-backed one.
42
+ - Move the auth token validation into middleware.
43
+ - Add a timeline to inspect todo changes while developing.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atom.io/template-react-node-backend",
3
- "version": "0.0.67",
3
+ "version": "0.0.68",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -14,10 +14,10 @@
14
14
  "react": "19.2.7",
15
15
  "react-dom": "19.2.7",
16
16
  "zod": "4.4.3",
17
- "atom.io": "0.47.3"
17
+ "atom.io": "0.47.4"
18
18
  },
19
19
  "devDependencies": {
20
- "@eslint-react/eslint-plugin": "5.8.16",
20
+ "@eslint-react/eslint-plugin": "5.8.17",
21
21
  "@types/node": "25.9.2",
22
22
  "@types/react": "19.2.17",
23
23
  "@types/react-dom": "19.2.3",