@ripple-ts/compat-react 0.2.215 → 0.3.0

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,38 @@
1
1
  # @ripple-ts/compat-react
2
2
 
3
+ ## 0.3.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [#779](https://github.com/Ripple-TS/ripple/pull/779)
8
+ [`74a10cc`](https://github.com/Ripple-TS/ripple/commit/74a10cc5701962cd7c72b144d59b35ecb76263a3)
9
+ Thanks [@leonidaz](https://github.com/leonidaz)! - Introduces #ripple namespace
10
+ for creating ripple reactive entities without imports, such as array, object,
11
+ map, set, date, url, urlSearchParams, mediaQuery. Adds track, untrack,
12
+ trackSplit, effect, context, server, style to the namespace. Deprecates #[] and
13
+ #{} in favor of #ripple[] and #ripple{}. Renames types and actual reactive
14
+ imports for TrackedX entities, such as TrackedArray, TrackedObject, etc. into
15
+ RippleArray, RippleObjec, etc.
16
+
17
+ ### Patch Changes
18
+
19
+ - Updated dependencies
20
+ [[`61271cb`](https://github.com/Ripple-TS/ripple/commit/61271cb1c4777f2ab9093c6c89a5ad771ec98b7d),
21
+ [`21dd402`](https://github.com/Ripple-TS/ripple/commit/21dd4029d7e027a0706cb133b09530a722feb73d),
22
+ [`c2dbefe`](https://github.com/Ripple-TS/ripple/commit/c2dbefe5645c0c4f6e0ff4dc00d9c4de81616667),
23
+ [`74a10cc`](https://github.com/Ripple-TS/ripple/commit/74a10cc5701962cd7c72b144d59b35ecb76263a3)]:
24
+ - ripple@0.3.0
25
+
26
+ ## 0.2.216
27
+
28
+ ### Patch Changes
29
+
30
+ - Updated dependencies
31
+ [[`9fb507d`](https://github.com/Ripple-TS/ripple/commit/9fb507d76af6fd6a5c636af1976d1e03d3e869ac),
32
+ [`e1de4bb`](https://github.com/Ripple-TS/ripple/commit/e1de4bb9df75342a693cda24d0999a423db05ec4),
33
+ [`95ea864`](https://github.com/Ripple-TS/ripple/commit/95ea8645b2cb27e2610a4ace4c8fb238c92d441a)]:
34
+ - ripple@0.2.216
35
+
3
36
  ## 0.2.215
4
37
 
5
38
  ### Patch Changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ripple-ts/compat-react",
3
- "version": "0.2.215",
3
+ "version": "0.3.0",
4
4
  "description": "Ripple compatibility layer for React",
5
5
  "main": "src/index.js",
6
6
  "author": "Dominic Gannaway",
@@ -17,13 +17,13 @@
17
17
  "dependencies": {
18
18
  "react": "^19.2.0",
19
19
  "react-dom": "^19.2.0",
20
- "ripple": "0.2.215"
20
+ "ripple": "0.3.0"
21
21
  },
22
22
  "devDependencies": {
23
23
  "@types/node": "^24.3.0",
24
24
  "@types/react": "^19.2.2",
25
25
  "@types/react-dom": "^19.2.2",
26
- "typescript": "^5.9.2"
26
+ "typescript": "^5.9.3"
27
27
  },
28
28
  "publishConfig": {
29
29
  "access": "public"
@@ -230,7 +230,7 @@ describe('compat-react', () => {
230
230
 
231
231
  it('should work with Ripple reactivity', async () => {
232
232
  component App() {
233
- let count = track(0);
233
+ let count = #ripple.track(0);
234
234
  <div>
235
235
  <div class="ripple-count">{@count}</div>
236
236
  <button onClick={() => @count++}>{'Increment'}</button>
@@ -321,7 +321,7 @@ describe('compat-react', () => {
321
321
  </tsx:react>
322
322
  </div>
323
323
  } catch (e) {
324
- <div class="error">{'ReactChiild had an error'}</div>
324
+ <div class="error">{'ReactChild had an error'}</div>
325
325
  }
326
326
  }
327
327
 
@@ -331,7 +331,7 @@ describe('compat-react', () => {
331
331
 
332
332
  const reactContent = container.querySelector('div > div');
333
333
  expect(reactContent).toBeTruthy();
334
- expect(reactContent.textContent).toBe('ReactChiild had an error');
334
+ expect(reactContent.textContent).toBe('ReactChild had an error');
335
335
  });
336
336
 
337
337
  it('should handle React errors #2', async () => {
@@ -353,7 +353,7 @@ describe('compat-react', () => {
353
353
  </tsx:react>
354
354
  </div>
355
355
  } catch (e) {
356
- <div class="error">{'ReactChiild had an error'}</div>
356
+ <div class="error">{'ReactChild had an error'}</div>
357
357
  }
358
358
  }
359
359
 
@@ -363,7 +363,7 @@ describe('compat-react', () => {
363
363
 
364
364
  const reactContent = container.querySelector('div > div');
365
365
  expect(reactContent).toBeTruthy();
366
- expect(reactContent.textContent).toBe('ReactChiild had an error');
366
+ expect(reactContent.textContent).toBe('ReactChild had an error');
367
367
  });
368
368
 
369
369
  it('Should handle React context', async () => {
@@ -464,7 +464,7 @@ describe('compat-react', () => {
464
464
  component AsyncRippleChild() {
465
465
  await sleep(1000);
466
466
 
467
- let count = track(0);
467
+ let count = #ripple.track(0);
468
468
 
469
469
  <div>
470
470
  <div class="async-content">{'Loaded!'}</div>
@@ -549,7 +549,7 @@ describe('compat-react', () => {
549
549
  }
550
550
 
551
551
  component App() {
552
- let page = track(1);
552
+ let page = #ripple.track(1);
553
553
  setPage = (p: number) => {
554
554
  @page = p;
555
555
  };
@@ -629,7 +629,7 @@ describe('compat-react', () => {
629
629
  }
630
630
 
631
631
  component App() {
632
- let page = track(1);
632
+ let page = #ripple.track(1);
633
633
  setPage = (p: number) => {
634
634
  @page = p;
635
635
  };