@intlify/core 11.4.18 → 12.0.0-alpha.10

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/LICENSE CHANGED
@@ -1,6 +1,6 @@
1
1
  The MIT License (MIT)
2
2
 
3
- Copyright (c) 2020 kazuya kawaguchi
3
+ Copyright (c) 2016-present kazuya kawaguchi and contributors
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy of
6
6
  this software and associated documentation files (the "Software"), to deal in
package/README.md CHANGED
@@ -8,7 +8,7 @@ The intlify core module for i18n
8
8
 
9
9
  - **`core(.runtime).global(.prod).js`**:
10
10
  - For direct use via `<script src="...">` in the browser. Exposes the `IntlifyCore` global
11
- - Note that global builds are not [UMD](https://github.com/umdjs/umd) builds. They are built as [IIFEs](https://developer.mozilla.org/en-US/docs/Glossary/IIFE) and is only meant for direct use via `<script src="...">`
11
+ - Note that global builds are not [UMD](https://github.com/umdjs/umd) builds. They are built as [IIFEs](https://developer.mozilla.org/en-US/docs/Glossary/IIFE) and is only meant for direct use via `<script src="...">`
12
12
  - In-browser locale messages compilation:
13
13
  - **`core.global.js`** is the "full" build that includes both the compiler and the runtime so it supports compiling locale messages on the fly
14
14
  - **`core.runtime.global.js`** contains only the runtime and requires locale messages to be pre-compiled during a build step
@@ -36,22 +36,13 @@ The intlify core module for i18n
36
36
 
37
37
  ### For Node.js (Server-Side)
38
38
 
39
- - **`core.cjs(.prod).js`**:
40
- - For CommonJS usage in Node.js
41
- - For use in Node.js via `require()`
42
- - If you bundle your app with webpack with `target: 'node'` and properly externalize `@intlify/core`, this is the build that will be loaded
43
- - The dev/prod files are pre-built, but the appropriate file is automatically required based on `process.env.NODE_ENV`
44
-
45
- - **`core(.runtime).node.mjs`**:
46
- - For ES Moudles usage in Node.js
39
+ - **`core(.runtime).node.js`**:
40
+ - For ES Modules usage in Node.js
47
41
  - For use in Node.js via `import`
48
42
  - The dev/prod files are pre-built, but the appropriate file is automatically required based on `process.env.NODE_ENV`
49
- - This module is proxy module of `core(.runtime).mjs`
50
- - **`core.runtime.node.mjs`**: is runtime only. proxy `core.runtime.mjs`
51
- - **`core.node.mjs`**: includes the runtime compiler. proxy `core.mjs`
52
-
53
- > NOTE: ES Modules will be the future of the Node.js module system. The `core.cjs(.prod).js` will be deprecated in the future. We recommend you would use `core(.runtime).node.mjs`. 9.3+
54
-
43
+ - This module is proxy module of `core(.runtime).js`
44
+ - **`core.runtime.node.js`**: is runtime only. proxy `core.runtime.js`
45
+ - **`core.node.js`**: includes the runtime compiler. proxy `core.js`
55
46
 
56
47
  ## :copyright: License
57
48
 
package/dist/core.d.ts CHANGED
@@ -1,4 +1 @@
1
-
2
- export * from "@intlify/core-base";
3
-
4
- export { }
1
+ export * from "@intlify/core-base";