bun-memory 1.1.27 → 1.1.28

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 +3 -1
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -27,6 +27,8 @@ bun add bun-memory
27
27
 
28
28
  ## Quick Start
29
29
 
30
+ ❗ **Important**: [Example: Using Scratches (Recommended)](#example-using-scratches-recommended).
31
+
30
32
  ```ts
31
33
  import Memory from 'bun-memory';
32
34
 
@@ -121,7 +123,7 @@ const buffer = Buffer.allocUnsafe(256);
121
123
  const array = new Uint64Array(buffer.buffer, buffer.byteOffset, buffer.byteLength / 8);
122
124
 
123
125
  while (true) {
124
- cs2.read(0x10000000n, buffer); // Updates array & buffer without allocations
126
+ cs2.read(0x10000000n, buffer); // Updates both array & buffer without allocations
125
127
  for (const element of array) {
126
128
  // …use element…
127
129
  }
package/package.json CHANGED
@@ -22,7 +22,7 @@
22
22
  "url": "git://github.com/obscuritysrl/bun-memory.git"
23
23
  },
24
24
  "type": "module",
25
- "version": "1.1.27",
25
+ "version": "1.1.28",
26
26
  "main": "./index.ts",
27
27
  "keywords": [
28
28
  "bun",