rsf-zero 0.3.3 → 0.3.5

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
@@ -29,7 +29,7 @@ export const addComment = async (comment: Comment) => {
29
29
  ```tsx
30
30
  import { addComment } from './addComment.ts';
31
31
 
32
- export const AddCommentButton = (comment: Comment) =>
32
+ export const AddCommentButton = (comment: Comment) =>
33
33
  <Button onClick={() => addComment(comment)} />
34
34
  ```
35
35
 
@@ -40,6 +40,9 @@ See [/example/src/App.tsx](https://github.com/IgorNadj/rsf-zero/tree/main/exampl
40
40
  - [React Server Functions](https://react.dev/reference/rsc/server-functions)
41
41
  - Note: only the top-level `'use server'` is implemented by this framework.
42
42
 
43
+ ## Configuring
44
+ See [configuring](https://github.com/IgorNadj/rsf-zero/tree/main/docs/configuring.md)
45
+
43
46
  ## Motivation
44
47
 
45
48
  **RSF Zero** is designed to be a dead simple micro-framework.
@@ -1 +1 @@
1
- {"version":3,"file":"dev.d.ts","sourceRoot":"","sources":["../../src/cli/dev.ts"],"names":[],"mappings":"AAGA,OAAO,eAAe,CAAC;AAMvB,OAAO,EAAC,aAAa,EAAC,MAAM,0BAA0B,CAAC;AAGvD,eAAO,MAAM,GAAG,GAAU,SAAS,aAAa,kBAiC/C,CAAA"}
1
+ {"version":3,"file":"dev.d.ts","sourceRoot":"","sources":["../../src/cli/dev.ts"],"names":[],"mappings":"AAGA,OAAO,eAAe,CAAC;AAMvB,OAAO,EAAC,aAAa,EAAC,MAAM,0BAA0B,CAAC;AAGvD,eAAO,MAAM,GAAG,GAAU,SAAS,aAAa,kBAkC/C,CAAA"}
package/dist/cli/dev.js CHANGED
@@ -28,6 +28,7 @@ export const dev = async (options) => {
28
28
  // - transform any actions found for the frontend
29
29
  // - and inform the onActionFound callback above
30
30
  const vite = await startVite({ app, onActionFound });
31
+ // onStart hook
31
32
  await onStartHook(options, app);
32
33
  app.listen(port, () => {
33
34
  console.log(`Server is running at http://localhost:${port}`);
@@ -1 +1 @@
1
- {"version":3,"file":"start.d.ts","sourceRoot":"","sources":["../../src/cli/start.ts"],"names":[],"mappings":"AAIA,OAAO,eAAe,CAAC;AAGvB,OAAO,EAAC,aAAa,EAAC,MAAM,0BAA0B,CAAC;AAMvD,eAAO,MAAM,KAAK,GAAU,SAAS,aAAa,kBAoCjD,CAAA"}
1
+ {"version":3,"file":"start.d.ts","sourceRoot":"","sources":["../../src/cli/start.ts"],"names":[],"mappings":"AAIA,OAAO,eAAe,CAAC;AAGvB,OAAO,EAAC,aAAa,EAAC,MAAM,0BAA0B,CAAC;AAMvD,eAAO,MAAM,KAAK,GAAU,SAAS,aAAa,kBAqCjD,CAAA"}
package/dist/cli/start.js CHANGED
@@ -40,6 +40,7 @@ export const start = async (options) => {
40
40
  res.sendFile(path.join(process.cwd(), 'dist/client/index.html'));
41
41
  }
42
42
  });
43
+ // onStart hook
43
44
  await onStartHook(options, app);
44
45
  app.listen(port, () => {
45
46
  console.log(`Server is running at http://localhost:${port}`);
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "description": "A minimal micro-framework with React Server Functions support",
4
4
  "author": "Igor Nadj",
5
5
  "type": "module",
6
- "version": "0.3.3",
6
+ "version": "0.3.5",
7
7
  "repository": {
8
8
  "type": "git",
9
9
  "url": "https://github.com/IgorNadj/rsf-zero.git",