You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
**3 In handling `Object`, it is regarded as `Record<string, unknown>` in terms of TypeScript
462
478
**4 MessagePack timestamps may have nanoseconds, which will lost when it is decoded into JavaScript `Date`. This behavior can be overridden by registering `-1` for the extension codec.
463
479
464
-
## Prerequsites
480
+
## Prerequisites
465
481
466
482
This is a universal JavaScript library that supports major browsers and NodeJS.
467
483
@@ -519,17 +535,17 @@ Note that `Buffer.from()` for `JSON.stringify()` is necessary to emulate I/O whe
519
535
520
536
The NPM package distributed in npmjs.com includes both ES2015+ and ES5 files:
521
537
522
-
*`dist/` is compiled into ES2015+, provided for NodeJS v10 or later
523
-
*`dist.es5+umd/` is compiled into ES5 with UMD-style single file
524
-
*`dist.es5+umd/msgpack.min.js` - the default, minified file (UMD)
525
-
*`dist.es5+umd/msgpack.js` - an optional, non-minified file (UMD)
526
-
*`dist.es5+esm/` is compiled into ES5 and placed as ES modules, provided for webpack-like bundlers, not NodeJS
538
+
*`dist/` is compiled into ES2019 with CommomJS, provided for NodeJS v10
539
+
*`dist.es5+umd/` is compiled into ES5 with UMD
540
+
*`dist.es5+umd/msgpack.min.js` - the minified file
541
+
*`dist.es5+umd/msgpack.js` - the non-minified file
542
+
*`dist.es5+esm/` is compiled into ES5 with ES modules, provided for webpack-like bundlers and NodeJS's ESM-mode
527
543
528
544
If you use NodeJS and/or webpack, their module resolvers use the suitable one automatically.
0 commit comments