ripple 0.3.106 → 0.3.107

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,14 @@
1
1
  # ripple
2
2
 
3
+ ## 0.3.107
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+ [[`21a43da`](https://github.com/Ripple-TS/ripple/commit/21a43da09713f28c5d2ae73633e5ca56e4cd8d1f)]:
9
+ - @tsrx/core@0.1.46
10
+ - @tsrx/ripple@0.1.47
11
+
3
12
  ## 0.3.106
4
13
 
5
14
  ### 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.106",
6
+ "version": "0.3.107",
7
7
  "type": "module",
8
8
  "module": "src/runtime/index-client.js",
9
9
  "main": "src/runtime/index-client.js",
@@ -73,8 +73,8 @@
73
73
  "clsx": "^2.1.1",
74
74
  "devalue": "^5.8.1",
75
75
  "esm-env": "^1.2.2",
76
- "@tsrx/core": "0.1.45",
77
- "@tsrx/ripple": "0.1.46"
76
+ "@tsrx/core": "0.1.46",
77
+ "@tsrx/ripple": "0.1.47"
78
78
  },
79
79
  "devDependencies": {
80
80
  "@types/estree": "^1.0.8",
@@ -20,10 +20,11 @@ describe('for statements', () => {
20
20
  () => compile(
21
21
  `function App() @{
22
22
  const items = [1, 2, 3];
23
+ const content = [];
23
24
  for (const item of items) {
24
- <div class="selected">{item}</div>
25
+ content.push(<div class="selected">{item}</div>);
25
26
  }
26
- <></>
27
+ <>{content}</>
27
28
  }`,
28
29
  'App.tsrx',
29
30
  { mode: 'client' },
@@ -49,7 +50,7 @@ describe('for statements', () => {
49
50
 
50
51
  it('renders an empty fallback', () => {
51
52
  function App() @{
52
- const items = [];
53
+ const items: string[] = [];
53
54
  @for (const item of items) {
54
55
  <div class="item">{item}</div>
55
56
  } @empty {
@@ -92,14 +92,15 @@ describe('function returns in client components', () => {
92
92
  expect(
93
93
  () => compile(
94
94
  `
95
- function App() @{
96
- const items = [1, 2, 3];
95
+ function App() @{
96
+ const items = [1, 2, 3];
97
+ const content = [];
97
98
  for (const item of items) {
98
- <div>{item}</div>
99
+ content.push(<div>{item}</div>);
99
100
  }
100
- <></>
101
- }
102
- `,
101
+ <>{content}</>
102
+ }
103
+ `,
103
104
  'test.tsrx',
104
105
  { mode: 'client' },
105
106
  ),
@@ -199,7 +199,7 @@ export default function A() @{
199
199
  });
200
200
 
201
201
  it('does not merge adjacent call-containing children into stringified text in SSR output', () => {
202
- const setup = `function child(label) {
202
+ const setup = `function child(label) @{
203
203
  <span>{label}</span>
204
204
  }
205
205
  function Constructed(label) {
@@ -18,9 +18,11 @@ describe('for statements in SSR', () => {
18
18
  () => compile(
19
19
  `function App() @{
20
20
  const items = [1, 2, 3];
21
+ const content = [];
21
22
  for (const item of items) {
22
- <div class="selected">{item}</div>
23
+ content.push(<div class="selected">{item}</div>);
23
24
  }
25
+ <>{content}</>
24
26
  }`,
25
27
  'App.tsrx',
26
28
  { mode: 'server' },
@@ -59,13 +59,15 @@ describe('function returns in SSR components', () => {
59
59
  expect(
60
60
  () => compile(
61
61
  `
62
- function App() @{
62
+ function App() @{
63
63
  const items = [1, 2, 3];
64
+ const content = [];
64
65
  for (const item of items) {
65
- <div>{item}</div>
66
+ content.push(<div>{item}</div>);
66
67
  }
67
- }
68
- `,
68
+ <>{content}</>
69
+ }
70
+ `,
69
71
  'test.tsrx',
70
72
  { mode: 'server' },
71
73
  ),