cbor-web 9.0.2 → 10.0.3
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/README.md +12 -1
- package/dist/cbor.js +1 -1
- package/package.json +4 -27
- package/types/lib/cbor.d.ts +0 -34
- package/types/lib/commented.d.ts +0 -111
- package/types/lib/constants.d.ts +0 -63
- package/types/lib/decoder.d.ts +0 -198
- package/types/lib/diagnose.d.ts +0 -91
- package/types/lib/encoder.d.ts +0 -483
- package/types/lib/map.d.ts +0 -81
- package/types/lib/objectRecorder.d.ts +0 -36
- package/types/lib/sharedValueEncoder.d.ts +0 -21
- package/types/lib/simple.d.ts +0 -47
- package/types/lib/tagged.d.ts +0 -78
- package/types/lib/utils.d.ts +0 -21
package/README.md
CHANGED
|
@@ -7,6 +7,17 @@ This package bundles the [cbor](../cbor) package for easy use on the web. The f
|
|
|
7
7
|
- [process](https://github.com/shtylman/node-process)
|
|
8
8
|
- [stream-browserify](https://github.com/browserify/stream-browserify)
|
|
9
9
|
|
|
10
|
+
## MOVE TO CBOR2
|
|
11
|
+
|
|
12
|
+
**NOTE**
|
|
13
|
+
|
|
14
|
+
ALL users of this library should move to the
|
|
15
|
+
[cbor2](https://github.com/hildjj/cbor2) library. It is where most
|
|
16
|
+
maintenance and support and all new features are happening. cbor2 works
|
|
17
|
+
natively on the web and does not this set of work-arounds and dependencies.
|
|
18
|
+
|
|
19
|
+
*Only* catastrophic bugs will be fixed in this library going forward.
|
|
20
|
+
|
|
10
21
|
## Examples
|
|
11
22
|
|
|
12
23
|
You can see `cbor-web` in action on the web [here](https://hildjj.github.io/node-cbor/example/).
|
|
@@ -24,4 +35,4 @@ You can see `cbor-web` in action on the web [here](https://hildjj.github.io/node
|
|
|
24
35
|
|
|
25
36
|
- You can bundle this with [parcel](https://github.com/parcel-bundler/parcel), [webpack](https://github.com/webpack/webpack), [browserify](https://github.com/browserify/browserify), etc.
|
|
26
37
|
- You can `require('cbor-web')` from node.js, but I wouldn't recommend that unless you're trying to use the exact same paths for backend and frontend codebases, for example.
|
|
27
|
-
- You can `import cbor from 'cbor-web'` in either node or in some web contexts. Caveats to using in node are the same as above, but someimes you might *really* want an ES6 module, and be willing to deal with the downsides. Note that as soon as Node 10 is no longer supported, the
|
|
38
|
+
- You can `import cbor from 'cbor-web'` in either node or in some web contexts. Caveats to using in node are the same as above, but someimes you might *really* want an ES6 module, and be willing to deal with the downsides. Note that as soon as Node 10 is no longer supported, the main `cbor` package will work toward becoming a native ES6 module.
|