@1mill/cloudevents 4.0.0 → 4.0.1

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 +14 -4
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -2,14 +2,24 @@
2
2
 
3
3
  ## Introduction
4
4
 
5
- This is an implementation and extention of the CloudEvents v1 specification to easily build cloudevents.
5
+ This is an implementation and extention of the [CloudEvents v1 specification](https://github.com/cloudevents/spec) to easily build cloudevents with origin history.
6
+
7
+
8
+ ## Install
9
+
10
+ ```html
11
+ <script src="https://unpkg.com/@1mill/cloudevents@4.0.0/dist/index.umd.js">
12
+ ```
13
+
14
+ or
6
15
 
7
16
  ```bash
8
- npm install @1mill/cloudevents@^2
17
+ npm install @1mill/cloudevents@^4
9
18
  ```
10
19
 
11
- ```js
12
- const { Cloudevent } = require('@1mill/cloudevents')
20
+ ```node
21
+ const { Cloudevent } = require('@1mill/cloudevents') // CommonJs
22
+ import { Cloudevent } from '@1mill/cloudevents' // EMS
13
23
 
14
24
  const cloudevent = new Cloudevent({
15
25
  data: JSON.stringify({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@1mill/cloudevents",
3
- "version": "4.0.0",
3
+ "version": "4.0.1",
4
4
  "description": "Node cloudevents specification and helper",
5
5
  "jsnext:main": "dist/index.module.js",
6
6
  "main": "dist/index.cjs",