@fragno-dev/example-fragment 0.0.20 → 0.0.22

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/CHANGELOG.md CHANGED
@@ -1,5 +1,36 @@
1
1
  # @fragno-dev/example-fragment
2
2
 
3
+ ## 0.0.22
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [0020e39]
8
+ - @fragno-dev/core@0.2.2
9
+
10
+ ## 0.0.21
11
+
12
+ ### Patch Changes
13
+
14
+ - 4d141f8: fix: remove development exports from published packages
15
+ - Updated dependencies [3e2ff94]
16
+ - Updated dependencies [f34d7d7]
17
+ - Updated dependencies [4d141f8]
18
+ - Updated dependencies [c8841b5]
19
+ - Updated dependencies [83f6223]
20
+ - Updated dependencies [567c3b3]
21
+ - Updated dependencies [8a2da9d]
22
+ - Updated dependencies [93fa469]
23
+ - Updated dependencies [b3ad7eb]
24
+ - Updated dependencies [9eeba53]
25
+ - Updated dependencies [2ae432c]
26
+ - Updated dependencies [9f87189]
27
+ - Updated dependencies [0f9b7ef]
28
+ - Updated dependencies [f4aedad]
29
+ - Updated dependencies [f042c9d]
30
+ - Updated dependencies [7bda0b2]
31
+ - Updated dependencies [b84a3d0]
32
+ - @fragno-dev/core@0.2.1
33
+
3
34
  ## 0.0.20
4
35
 
5
36
  ### Patch Changes
package/package.json CHANGED
@@ -1,87 +1,63 @@
1
1
  {
2
2
  "name": "@fragno-dev/example-fragment",
3
- "version": "0.0.20",
3
+ "version": "0.0.22",
4
+ "homepage": "https://fragno.dev",
5
+ "license": "MIT",
6
+ "repository": {
7
+ "type": "git",
8
+ "url": "https://github.com/rejot-dev/fragno.git",
9
+ "directory": "example-fragments/example-fragment"
10
+ },
11
+ "type": "module",
12
+ "main": "./dist/node/index.js",
13
+ "module": "./dist/node/index.js",
14
+ "types": "./dist/node/index.d.ts",
4
15
  "exports": {
5
16
  ".": {
6
- "development": {
7
- "browser": "./dist/browser/index.js",
8
- "default": "./src/index.ts"
9
- },
10
17
  "browser": "./dist/browser/index.js",
11
18
  "types": "./dist/index.d.ts",
12
19
  "default": "./dist/node/index.js"
13
20
  },
14
21
  "./react": {
15
- "development": {
16
- "browser": "./dist/browser/client/react.js",
17
- "default": "./src/client/react.ts"
18
- },
19
22
  "types": "./dist/browser/client/react.d.ts",
20
23
  "default": "./dist/browser/client/react.js"
21
24
  },
22
25
  "./vue": {
23
- "development": {
24
- "browser": "./dist/browser/client/vue.js",
25
- "default": "./src/client/vue.ts"
26
- },
27
26
  "types": "./dist/browser/client/vue.d.ts",
28
27
  "default": "./dist/browser/client/vue.js"
29
28
  },
30
29
  "./svelte": {
31
- "development": {
32
- "browser": "./dist/browser/client/svelte.js",
33
- "default": "./src/client/svelte.ts"
34
- },
35
30
  "types": "./dist/browser/client/svelte.d.ts",
36
31
  "default": "./dist/browser/client/svelte.js"
37
32
  },
38
33
  "./solid": {
39
- "development": {
40
- "browser": "./dist/browser/client/solid.js",
41
- "default": "./src/client/solid.ts"
42
- },
43
34
  "types": "./dist/browser/client/solid.d.ts",
44
35
  "default": "./dist/browser/client/solid.js"
45
36
  },
46
37
  "./vanilla": {
47
- "development": {
48
- "browser": "./dist/browser/client/vanilla.js",
49
- "default": "./src/client/vanilla.ts"
50
- },
51
38
  "types": "./dist/browser/client/vanilla.d.ts",
52
39
  "default": "./dist/browser/client/vanilla.js"
53
40
  }
54
41
  },
55
- "main": "./dist/node/index.js",
56
- "module": "./dist/node/index.js",
57
- "types": "./dist/node/index.d.ts",
58
- "type": "module",
59
42
  "dependencies": {
60
43
  "zod": "^4.3.5",
61
- "@fragno-dev/core": "0.2.0"
62
- },
63
- "peerDependencies": {
64
- "typescript": "^5.9.3",
65
- "react": ">=18.0.0",
66
- "svelte": ">=4.0.0",
67
- "vue": ">=3.0.0",
68
- "solid-js": ">=1.0.0"
44
+ "@fragno-dev/core": "0.2.2"
69
45
  },
70
46
  "devDependencies": {
71
47
  "@types/node": "^22.19.7",
72
- "@fragno-dev/unplugin-fragno": "0.0.8",
48
+ "@fragno-dev/unplugin-fragno": "0.0.9",
73
49
  "@fragno-private/typescript-config": "0.0.1"
74
50
  },
75
- "repository": {
76
- "type": "git",
77
- "url": "https://github.com/rejot-dev/fragno.git",
78
- "directory": "example-fragments/example-fragment"
51
+ "peerDependencies": {
52
+ "@typescript/native-preview": "7.0.0-dev.20260414.1",
53
+ "react": ">=18.0.0",
54
+ "solid-js": ">=1.0.0",
55
+ "svelte": ">=4.0.0",
56
+ "vue": ">=3.0.0"
79
57
  },
80
- "homepage": "https://fragno.dev",
81
- "license": "MIT",
82
58
  "scripts": {
83
59
  "build": "tsdown",
84
60
  "build:watch": "tsdown --watch",
85
- "types:check": "tsc --noEmit"
61
+ "types:check": "tsgo --noEmit"
86
62
  }
87
63
  }
@@ -1,6 +1,7 @@
1
+ import type { FragnoPublicClientConfig } from "@fragno-dev/core/client";
1
2
  import { useFragno } from "@fragno-dev/core/react";
3
+
2
4
  import { createExampleFragmentClients } from "..";
3
- import type { FragnoPublicClientConfig } from "@fragno-dev/core/client";
4
5
 
5
6
  export function createExampleFragmentClient(config: FragnoPublicClientConfig = {}) {
6
7
  return useFragno(createExampleFragmentClients(config));
@@ -1,6 +1,7 @@
1
+ import type { FragnoPublicClientConfig } from "@fragno-dev/core/client";
1
2
  import { useFragno } from "@fragno-dev/core/solid";
3
+
2
4
  import { createExampleFragmentClients } from "..";
3
- import type { FragnoPublicClientConfig } from "@fragno-dev/core/client";
4
5
 
5
6
  export function createExampleFragmentClient(config: FragnoPublicClientConfig = {}) {
6
7
  return useFragno(createExampleFragmentClients(config));
@@ -1,6 +1,7 @@
1
+ import type { FragnoPublicClientConfig } from "@fragno-dev/core/client";
1
2
  import { useFragno } from "@fragno-dev/core/svelte";
3
+
2
4
  import { createExampleFragmentClients } from "..";
3
- import type { FragnoPublicClientConfig } from "@fragno-dev/core/client";
4
5
 
5
6
  export function createExampleFragmentClient(config: FragnoPublicClientConfig = {}) {
6
7
  return useFragno(createExampleFragmentClients(config));
@@ -1,6 +1,7 @@
1
+ import type { FragnoPublicClientConfig } from "@fragno-dev/core/client";
1
2
  import { useFragno } from "@fragno-dev/core/vanilla";
3
+
2
4
  import { createExampleFragmentClients } from "..";
3
- import type { FragnoPublicClientConfig } from "@fragno-dev/core/client";
4
5
 
5
6
  export function createExampleFragmentClient(config: FragnoPublicClientConfig = {}) {
6
7
  return useFragno(createExampleFragmentClients(config));
package/src/client/vue.ts CHANGED
@@ -1,6 +1,7 @@
1
+ import type { FragnoPublicClientConfig } from "@fragno-dev/core/client";
1
2
  import { useFragno } from "@fragno-dev/core/vue";
3
+
2
4
  import { createExampleFragmentClients } from "..";
3
- import type { FragnoPublicClientConfig } from "@fragno-dev/core/client";
4
5
 
5
6
  export function createExampleFragmentClient(config: FragnoPublicClientConfig = {}) {
6
7
  return useFragno(createExampleFragmentClients(config));
package/src/index.ts CHANGED
@@ -1,11 +1,12 @@
1
- import { defineFragment, instantiate, type FragnoPublicConfig } from "@fragno-dev/core";
2
- import { defineRoutes } from "@fragno-dev/core/route";
1
+ import { createHash } from "node:crypto";
2
+ import { readFile } from "node:fs/promises";
3
+ import { platform } from "node:os";
4
+
3
5
  import { createClientBuilder, type FragnoPublicClientConfig } from "@fragno-dev/core/client";
6
+ import { defineRoutes } from "@fragno-dev/core/route";
4
7
  import { z } from "zod";
5
8
 
6
- import { readFile } from "node:fs/promises";
7
- import { platform } from "node:os";
8
- import { createHash } from "node:crypto";
9
+ import { defineFragment, instantiate, type FragnoPublicConfig } from "@fragno-dev/core";
9
10
 
10
11
  export interface ExampleFragmentServerConfig {
11
12
  initialData?: string;
package/tsconfig.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "extends": "@fragno-private/typescript-config/tsconfig.base.json",
2
+ "extends": "@fragno-private/typescript-config/tsconfig.node.json",
3
3
  "compilerOptions": {
4
4
  "outDir": "./dist",
5
5
  "rootDir": ".",
package/tsdown.config.ts CHANGED
@@ -1,5 +1,5 @@
1
- import { defineConfig } from "tsdown";
2
1
  import unpluginFragno from "@fragno-dev/unplugin-fragno/rollup";
2
+ import { defineConfig } from "tsdown";
3
3
 
4
4
  export default defineConfig([
5
5
  {