scoundrel-remote-eval 1.0.29 → 1.0.31

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.
Files changed (2) hide show
  1. package/README.md +7 -0
  2. package/package.json +2 -1
package/README.md CHANGED
@@ -48,6 +48,13 @@ const length = await array.length
48
48
  expect(length).toEqual(2)
49
49
  ```
50
50
 
51
+ When you need a primitive (for comparisons, JSON, or string interpolation), serialize the proxy result first:
52
+
53
+ ```js
54
+ const accountCount = await (await accountClass.count()).__serialize()
55
+ expect(accountCount).toEqual(1)
56
+ ```
57
+
51
58
  `newObject`, `import`, and `getObject` return proxies by default; use `newObjectReference`/`newObjectResult`, `importReference`/`importResult`, and `getObjectReference`/`getObjectResult` when you need a `Reference` or serialized result.
52
59
 
53
60
  ```js
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "scoundrel-remote-eval",
3
3
  "type": "module",
4
- "version": "1.0.29",
4
+ "version": "1.0.31",
5
5
  "description": "",
6
6
  "main": "build/index.js",
7
7
  "types": "build/index.d.ts",
@@ -13,6 +13,7 @@
13
13
  "build": "rm -rf build && tsc",
14
14
  "lint": "eslint",
15
15
  "prepublishOnly": "npm run build",
16
+ "release:patch": "node scripts/release-patch.js",
16
17
  "typecheck": "tsc --noEmit",
17
18
  "test": "jasmine",
18
19
  "watch": "tsc -w"