@lumjs/compat 1.2.0 → 1.3.0
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/CHANGELOG.md +7 -1
- package/lib/v4/index.js +26 -7
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -6,6 +6,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
6
6
|
|
|
7
7
|
## [Unreleased]
|
|
8
8
|
|
|
9
|
+
## [1.3.0] - 2022-10-13
|
|
10
|
+
### Changed
|
|
11
|
+
- Bumped `@lumjs/core` to `1.6.1`.
|
|
12
|
+
- Rewrote `v4/index` to use `core.buildModule()` and lazy-loading.
|
|
13
|
+
|
|
9
14
|
## [1.2.0] - 2022-09-12
|
|
10
15
|
### Changed
|
|
11
16
|
- Updated almost all of the DocBlocks for better documentation.
|
|
@@ -29,7 +34,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
29
34
|
### Added
|
|
30
35
|
- Initial release.
|
|
31
36
|
|
|
32
|
-
[Unreleased]: https://github.com/supernovus/lum.compat.js/compare/v1.
|
|
37
|
+
[Unreleased]: https://github.com/supernovus/lum.compat.js/compare/v1.3.0...HEAD
|
|
38
|
+
[1.3.0]: https://github.com/supernovus/lum.compat.js/compare/v1.2.0...v1.3.0
|
|
33
39
|
[1.2.0]: https://github.com/supernovus/lum.compat.js/compare/v1.1.0...v1.2.0
|
|
34
40
|
[1.1.0]: https://github.com/supernovus/lum.compat.js/compare/v1.0.0...v1.1.0
|
|
35
41
|
[1.0.0]: https://github.com/supernovus/lum.compat.js/releases/tag/v1.0.0
|
package/lib/v4/index.js
CHANGED
|
@@ -1,39 +1,58 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Lum.js v4 compatibility set.
|
|
3
|
+
*
|
|
4
|
+
* Now uses lazy-loading for all properties.
|
|
5
|
+
*
|
|
3
6
|
* @module @lumjs/compat/v4
|
|
4
7
|
*/
|
|
5
8
|
|
|
9
|
+
const {can,from} = require('@lumjs/core').buildModule(module);
|
|
10
|
+
|
|
6
11
|
/**
|
|
12
|
+
* @name module:@lumjs/compat/v4.descriptors
|
|
7
13
|
* @see module:@lumjs/compat/v4/descriptors
|
|
8
14
|
*/
|
|
9
|
-
|
|
15
|
+
can('descriptors');
|
|
16
|
+
//exports.descriptors = require('./descriptors');
|
|
10
17
|
|
|
11
18
|
/**
|
|
19
|
+
* @name module:@lumjs/compat/v4.DESC
|
|
12
20
|
* @see module:@lumjs/compat/v4/descriptors.DESC
|
|
13
21
|
*/
|
|
14
|
-
|
|
22
|
+
from('descriptors', true, 'DESC');
|
|
23
|
+
//exports.DESC = exports.descriptors.DESC;
|
|
15
24
|
|
|
16
25
|
/**
|
|
26
|
+
* @name module:@lumjs/compat/v4.prop
|
|
17
27
|
* @see module:@lumjs/compat/v4/prop
|
|
18
28
|
*/
|
|
19
|
-
|
|
29
|
+
can('prop');
|
|
30
|
+
//exports.prop = require('./prop');
|
|
20
31
|
|
|
21
32
|
/**
|
|
33
|
+
* @name module:@lumjs/compat/v4.deprecated
|
|
22
34
|
* @see module:@lumjs/compat/v4/deprecated
|
|
23
35
|
*/
|
|
24
|
-
|
|
36
|
+
can('deprecated');
|
|
37
|
+
//exports.deprecated = require('./deprecated');
|
|
25
38
|
|
|
26
39
|
/**
|
|
40
|
+
* @name module:@lumjs/compat/v4.LoadTracker
|
|
27
41
|
* @see module:@lumjs/compat/v4/loadtracker
|
|
28
42
|
*/
|
|
29
|
-
|
|
43
|
+
can('LoadTracker', {module: './loadtracker'});
|
|
44
|
+
//exports.LoadTracker = require('./loadtracker');
|
|
30
45
|
|
|
31
46
|
/**
|
|
47
|
+
* @name module:@lumjs/compat/v4.Promise
|
|
32
48
|
* @see module:@lumjs/compat/v4/promise
|
|
33
49
|
*/
|
|
34
|
-
|
|
50
|
+
can('Promise', {module: './promise'});
|
|
51
|
+
//exports.Promise = require('./promise');
|
|
35
52
|
|
|
36
53
|
/**
|
|
54
|
+
* @name module:@lumjs/compat/v4.obj
|
|
37
55
|
* @see module:@lumjs/compat/v4/object-helpers
|
|
38
56
|
*/
|
|
39
|
-
|
|
57
|
+
can('obj', {module: './object-helpers'});
|
|
58
|
+
//exports.obj = require('./object-helpers');
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lumjs/compat",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.3.0",
|
|
4
4
|
"main": "lib/index.js",
|
|
5
5
|
"exports": {
|
|
6
6
|
".": "./lib/index.js",
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
"url": "https://github.com/supernovus/lum.compat.js.git"
|
|
17
17
|
},
|
|
18
18
|
"dependencies": {
|
|
19
|
-
"@lumjs/core": "^1.
|
|
19
|
+
"@lumjs/core": "^1.6.1",
|
|
20
20
|
"semver": "^7.3.7"
|
|
21
21
|
},
|
|
22
22
|
"scripts":
|