ripple 0.3.40 → 0.3.42
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,22 @@
|
|
|
1
1
|
# ripple
|
|
2
2
|
|
|
3
|
+
## 0.3.42
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies
|
|
8
|
+
[[`b4cc83f`](https://github.com/Ripple-TS/ripple/commit/b4cc83f07d8777d5882d1e853493941a3f6224ae)]:
|
|
9
|
+
- @tsrx/ripple@0.0.24
|
|
10
|
+
- ripple@0.3.42
|
|
11
|
+
|
|
12
|
+
## 0.3.41
|
|
13
|
+
|
|
14
|
+
### Patch Changes
|
|
15
|
+
|
|
16
|
+
- Updated dependencies []:
|
|
17
|
+
- ripple@0.3.41
|
|
18
|
+
- @tsrx/ripple@0.0.23
|
|
19
|
+
|
|
3
20
|
## 0.3.40
|
|
4
21
|
|
|
5
22
|
### Patch Changes
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"description": "Ripple is an elegant TypeScript UI framework",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"author": "Dominic Gannaway",
|
|
6
|
-
"version": "0.3.
|
|
6
|
+
"version": "0.3.42",
|
|
7
7
|
"type": "module",
|
|
8
8
|
"module": "src/runtime/index-client.js",
|
|
9
9
|
"main": "src/runtime/index-client.js",
|
|
@@ -76,7 +76,7 @@
|
|
|
76
76
|
"esm-env": "^1.2.2",
|
|
77
77
|
"@types/estree": "^1.0.8",
|
|
78
78
|
"@types/estree-jsx": "^1.0.5",
|
|
79
|
-
"@tsrx/ripple": "0.0.
|
|
79
|
+
"@tsrx/ripple": "0.0.24"
|
|
80
80
|
},
|
|
81
81
|
"devDependencies": {
|
|
82
82
|
"@types/node": "^24.3.0",
|
|
@@ -84,9 +84,9 @@
|
|
|
84
84
|
"typescript": "^5.9.3",
|
|
85
85
|
"@volar/language-core": "~2.4.28",
|
|
86
86
|
"vscode-languageserver-types": "^3.17.5",
|
|
87
|
-
"@tsrx/core": "0.0.
|
|
87
|
+
"@tsrx/core": "0.0.22"
|
|
88
88
|
},
|
|
89
89
|
"peerDependencies": {
|
|
90
|
-
"ripple": "0.3.
|
|
90
|
+
"ripple": "0.3.42"
|
|
91
91
|
}
|
|
92
92
|
}
|
|
@@ -426,6 +426,38 @@ export component MyComponent<Item>(props: Props<Item>) {
|
|
|
426
426
|
expect(result).toContain('export function MyComponent<Item>(props: Props<Item>)');
|
|
427
427
|
});
|
|
428
428
|
|
|
429
|
+
it('preserves generic type arguments on JSX component tags in to_ts output', () => {
|
|
430
|
+
const source = `
|
|
431
|
+
type User = { name: string };
|
|
432
|
+
|
|
433
|
+
component RenderProp<Item>(props: { children: (item: Item) => any }) {}
|
|
434
|
+
|
|
435
|
+
export component App() {
|
|
436
|
+
<RenderProp<User>>
|
|
437
|
+
{(item) => item.name}
|
|
438
|
+
</RenderProp>
|
|
439
|
+
}
|
|
440
|
+
`;
|
|
441
|
+
const result = compile_to_volar_mappings(source, 'test.tsrx').code;
|
|
442
|
+
|
|
443
|
+
expect(result).toContain('<RenderProp<User>');
|
|
444
|
+
});
|
|
445
|
+
|
|
446
|
+
it('preserves generic type arguments on self-closing JSX component tags in to_ts output', () => {
|
|
447
|
+
const source = `
|
|
448
|
+
component Box<T>({ value }: { value: T }) {
|
|
449
|
+
<div>{String(value)}</div>
|
|
450
|
+
}
|
|
451
|
+
|
|
452
|
+
export component App() {
|
|
453
|
+
<Box<string> value="hi" />
|
|
454
|
+
}
|
|
455
|
+
`;
|
|
456
|
+
const result = compile_to_volar_mappings(source, 'test.tsrx').code;
|
|
457
|
+
|
|
458
|
+
expect(result).toContain('<Box<string>');
|
|
459
|
+
});
|
|
460
|
+
|
|
429
461
|
it('preserves regular function type parameters in to_ts output', () => {
|
|
430
462
|
const source = `
|
|
431
463
|
type Props<Item> = {
|