@bleedingdev/modern-js-renderer-solid 3.9.3-ultramodern.9 → 3.11.3-ultramodern.2

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.
@@ -139,27 +139,28 @@ export function loader({ request }: DataHandlerInput) {
139
139
  };
140
140
  }
141
141
 
142
- export async function action({ request }: DataHandlerInput) {
143
- const form = await request.formData();
144
- const name = form.get('name');
145
- if (typeof name !== 'string' || !name.trim())
146
- return Response.json(
147
- { fieldErrors: { name: 'Name required' } },
148
- { status: 422 },
149
- );
150
- if (form.get('intent') === 'redirect')
151
- return new Response(null, {
152
- status: 303,
153
- headers: {
154
- location: '/about',
155
- 'set-cookie': 'conformance-saved=1; Path=/; SameSite=Lax',
156
- },
157
- });
158
- if (form.get('intent') === 'throw') throw new Error('Native action failure');
159
- return {
160
- saved: name,
161
- privateValue: request.headers.get('x-conformance-private'),
162
- };
142
+ export function action({ request }: DataHandlerInput) {
143
+ return request.formData().then(form => {
144
+ const name = form.get('name');
145
+ if (typeof name !== 'string' || name.trim().length === 0)
146
+ return Response.json(
147
+ { fieldErrors: { name: 'Name required' } },
148
+ { status: 422 },
149
+ );
150
+ if (form.get('intent') === 'redirect')
151
+ return new Response(null, {
152
+ status: 303,
153
+ headers: {
154
+ location: '/about',
155
+ 'set-cookie': 'conformance-saved=1; Path=/; SameSite=Lax',
156
+ },
157
+ });
158
+ if (form.get('intent') === 'throw') throw new Error('Native action failure');
159
+ return {
160
+ saved: name,
161
+ privateValue: request.headers.get('x-conformance-private'),
162
+ };
163
+ });
163
164
  }
164
165
  `
165
166
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bleedingdev/modern-js-renderer-solid",
3
- "version": "3.9.3-ultramodern.9",
3
+ "version": "3.11.3-ultramodern.2",
4
4
  "description": "UltraModern native Solid 2 application runtime.",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -68,7 +68,7 @@
68
68
  "dependencies": {
69
69
  "@babel/core": "7.29.7",
70
70
  "@jridgewell/remapping": "2.3.5",
71
- "@modern-js/renderer-core": "npm:@bleedingdev/modern-js-renderer-core@3.9.3-ultramodern.9",
71
+ "@modern-js/renderer-core": "npm:@bleedingdev/modern-js-renderer-core@3.11.3-ultramodern.2",
72
72
  "@solidjs/signals": "2.0.0-rc.15",
73
73
  "@solidjs/web": "2.0.0-rc.15",
74
74
  "@tanstack/history": "1.162.5",
@@ -76,8 +76,8 @@
76
76
  "solid-js": "2.0.0-rc.15"
77
77
  },
78
78
  "peerDependencies": {
79
- "@modern-js/i18n-runtime-extensions": "3.9.3-ultramodern.9",
80
- "@rsbuild/core": "2.2.13",
79
+ "@modern-js/i18n-runtime-extensions": "3.11.3-ultramodern.2",
80
+ "@rsbuild/core": "2.3.2",
81
81
  "@solidjs/compiler": "2.0.0-rc.15",
82
82
  "@tanstack/router-core": "1.171.38",
83
83
  "i18next": ">=25.7.4"
@@ -97,11 +97,11 @@
97
97
  }
98
98
  },
99
99
  "devDependencies": {
100
- "@modern-js/i18n-runtime-extensions": "npm:@bleedingdev/modern-js-i18n-runtime-extensions@3.9.3-ultramodern.9",
101
- "@modern-js/tsconfig": "npm:@bleedingdev/modern-js-tsconfig@3.9.3-ultramodern.9",
102
- "@rsbuild/core": "2.2.13",
100
+ "@modern-js/i18n-runtime-extensions": "npm:@bleedingdev/modern-js-i18n-runtime-extensions@3.11.3-ultramodern.2",
101
+ "@modern-js/tsconfig": "npm:@bleedingdev/modern-js-tsconfig@3.11.3-ultramodern.2",
102
+ "@rsbuild/core": "2.3.2",
103
103
  "@rslib/core": "1.0.3",
104
- "@scripts/rstest-config": "2.66.0",
104
+ "@scripts/rstest-config": "2.66.7",
105
105
  "@solidjs/compiler": "2.0.0-rc.15",
106
106
  "@tanstack/router-core": "https://github.com/BleedingDev/router/releases/download/ultramodern-router-core-585d3233f7f5/tanstack-router-core-1.171.38.tgz",
107
107
  "@types/node": "^26.6.5"
@@ -123,7 +123,7 @@
123
123
  "scripts": {
124
124
  "build": "rslib build",
125
125
  "test": "rstest",
126
- "test:types": "tsc -p tests/types/tsconfig.json"
126
+ "test:types": "node ../../../scripts/with-effect-tsrs.mjs --project tests/types/tsconfig.json"
127
127
  },
128
128
  "homepage": "https://github.com/ultramodernjs/ultramodern.js#readme",
129
129
  "bugs": {
@@ -175,27 +175,28 @@ export function loader({ request }: DataHandlerInput) {
175
175
  };
176
176
  }
177
177
 
178
- export async function action({ request }: DataHandlerInput) {
179
- const form = await request.formData();
180
- const name = form.get('name');
181
- if (typeof name !== 'string' || !name.trim())
182
- return Response.json(
183
- { fieldErrors: { name: 'Name required' } },
184
- { status: 422 },
185
- );
186
- if (form.get('intent') === 'redirect')
187
- return new Response(null, {
188
- status: 303,
189
- headers: {
190
- location: '/about',
191
- 'set-cookie': 'conformance-saved=1; Path=/; SameSite=Lax',
192
- },
193
- });
194
- if (form.get('intent') === 'throw') throw new Error('Native action failure');
195
- return {
196
- saved: name,
197
- privateValue: request.headers.get('x-conformance-private'),
198
- };
178
+ export function action({ request }: DataHandlerInput) {
179
+ return request.formData().then(form => {
180
+ const name = form.get('name');
181
+ if (typeof name !== 'string' || name.trim().length === 0)
182
+ return Response.json(
183
+ { fieldErrors: { name: 'Name required' } },
184
+ { status: 422 },
185
+ );
186
+ if (form.get('intent') === 'redirect')
187
+ return new Response(null, {
188
+ status: 303,
189
+ headers: {
190
+ location: '/about',
191
+ 'set-cookie': 'conformance-saved=1; Path=/; SameSite=Lax',
192
+ },
193
+ });
194
+ if (form.get('intent') === 'throw') throw new Error('Native action failure');
195
+ return {
196
+ saved: name,
197
+ privateValue: request.headers.get('x-conformance-private'),
198
+ };
199
+ });
199
200
  }
200
201
  `,
201
202
  },
@@ -60,7 +60,7 @@ export function useParams<
60
60
  ): Accessor<
61
61
  ThrowOrOptional<UseParamsResult<TRouter, TFrom, TStrict, TSelected>, TThrow>
62
62
  > {
63
- return useMatch({
63
+ return useMatch<TRouter, TFrom, TStrict, TThrow>({
64
64
  ...opts,
65
65
  select: match => {
66
66
  const params = opts.strict === false ? match.params : match._strictParams;
@@ -60,7 +60,7 @@ export function useSearch<
60
60
  ): Accessor<
61
61
  ThrowOrOptional<UseSearchResult<TRouter, TFrom, TStrict, TSelected>, TThrow>
62
62
  > {
63
- return useMatch({
63
+ return useMatch<TRouter, TFrom, TStrict, TThrow>({
64
64
  ...opts,
65
65
  select: match => {
66
66
  const search = match.search;