msgpackr 1.8.3 → 1.8.4

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/index.d.cts CHANGED
@@ -10,6 +10,7 @@ export interface Options {
10
10
  useRecords?: boolean
11
11
  structures?: {}[]
12
12
  moreTypes?: boolean
13
+ sequential?: boolean
13
14
  structuredClone?: boolean
14
15
  mapsAsObjects?: boolean
15
16
  variableMapSize?: boolean
package/index.d.ts CHANGED
@@ -10,6 +10,7 @@ export interface Options {
10
10
  useRecords?: boolean
11
11
  structures?: {}[]
12
12
  moreTypes?: boolean
13
+ sequential?: boolean
13
14
  structuredClone?: boolean
14
15
  mapsAsObjects?: boolean
15
16
  variableMapSize?: boolean
package/pack.js CHANGED
@@ -15,7 +15,7 @@ let position = 0
15
15
  let safeEnd
16
16
  let bundledStrings = null
17
17
  let writeStructSlots
18
- const MAX_BUNDLE_SIZE = 0xf000
18
+ const MAX_BUNDLE_SIZE = 0x5500 // maximum characters such that the encoded bytes fits in 16 bits.
19
19
  const hasNonLatin = /[\u0080-\uFFFF]/
20
20
  export const RECORD_SYMBOL = Symbol('record-id')
21
21
  export class Packr extends Unpackr {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "msgpackr",
3
3
  "author": "Kris Zyp",
4
- "version": "1.8.3",
4
+ "version": "1.8.4",
5
5
  "description": "Ultra-fast MessagePack implementation with extensions for records and structured cloning",
6
6
  "license": "MIT",
7
7
  "types": "./index.d.ts",
@@ -75,7 +75,7 @@
75
75
  "/*.cts"
76
76
  ],
77
77
  "optionalDependencies": {
78
- "msgpackr-extract": "^3.0.0"
78
+ "msgpackr-extract": "^3.0.1"
79
79
  },
80
80
  "devDependencies": {
81
81
  "@rollup/plugin-json": "^5.0.1",