@mdn/browser-compat-data 5.2.61 → 5.2.62

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 (3) hide show
  1. package/README.md +13 -0
  2. package/data.json +1 -1
  3. package/package.json +1 -1
package/README.md CHANGED
@@ -25,11 +25,17 @@ Then, you can import BCD into your project with either `import` or `require()`:
25
25
  ```js
26
26
  // ESM with Import Assertions (NodeJS 16+)
27
27
  import bcd from '@mdn/browser-compat-data' assert { type: 'json' };
28
+ // ...or...
29
+ const { default: bcd } = await import('@mdn/browser-compat-data', {
30
+ assert: { type: 'json' },
31
+ });
28
32
 
29
33
  // ...or...
30
34
 
31
35
  // ESM Wrapper for older NodeJS versions (NodeJS v12+)
32
36
  import bcd from '@mdn/browser-compat-data/forLegacyNode';
37
+ // ...or...
38
+ const { default: bcd } = await import('@mdn/browser-compat-data/forLegacyNode');
33
39
 
34
40
  // ...or...
35
41
 
@@ -43,6 +49,13 @@ You can import `@mdn/browser-compat-data` using a CDN.
43
49
 
44
50
  ```js
45
51
  import bcd from 'https://unpkg.com/@mdn/browser-compat-data' assert { type: 'json' };
52
+ // ...or...
53
+ const { default: bcd } = await import(
54
+ 'https://unpkg.com/@mdn/browser-compat-data',
55
+ {
56
+ assert: { type: 'json' },
57
+ }
58
+ );
46
59
  ```
47
60
 
48
61
  ### Other Languages