@lumjs/core 1.2.0 → 1.2.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.
- package/docs/changelogs/1.x.md +8 -1
- package/lib/obj/getproperty.js +3 -3
- package/lib/objectid.js +14 -0
- package/package.json +1 -1
- package/test/types.js +1 -1
package/docs/changelogs/1.x.md
CHANGED
|
@@ -6,6 +6,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
6
6
|
|
|
7
7
|
## [Unreleased]
|
|
8
8
|
|
|
9
|
+
## [1.2.1] - 2022-09-05
|
|
10
|
+
### Added
|
|
11
|
+
- `core.InternalObjectId#untag()`
|
|
12
|
+
### Changed
|
|
13
|
+
- Cleaned up the wording in a docblock, and updated a test to use `done()`.
|
|
14
|
+
|
|
9
15
|
## [1.2.0] - 2022-08-10
|
|
10
16
|
### Added
|
|
11
17
|
- Moved the `array.powerset()` and `array.random()` methods from Lum.js v4 into `core.arrays`.
|
|
@@ -40,7 +46,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
40
46
|
- See [1.0-beta.md](1.0-beta.md) for the beta versions of `1.0`
|
|
41
47
|
- See [lum.js](https://github.com/supernovus/lum.js) for the original library this is replacing.
|
|
42
48
|
|
|
43
|
-
[Unreleased]: https://github.com/supernovus/lum.core.js/compare/v1.2.
|
|
49
|
+
[Unreleased]: https://github.com/supernovus/lum.core.js/compare/v1.2.1...HEAD
|
|
50
|
+
[1.2.1]: https://github.com/supernovus/lum.core.js/compare/v1.2.0...v1.2.1
|
|
44
51
|
[1.2.0]: https://github.com/supernovus/lum.core.js/compare/v1.1.1...v1.2.0
|
|
45
52
|
[1.1.1]: https://github.com/supernovus/lum.core.js/compare/v1.1.0...v1.1.1
|
|
46
53
|
[1.1.0]: https://github.com/supernovus/lum.core.js/compare/v1.0.0...v1.1.0
|
package/lib/obj/getproperty.js
CHANGED
|
@@ -4,9 +4,9 @@ const {isComplex,isObj} = types;
|
|
|
4
4
|
/**
|
|
5
5
|
* Get a property descriptor.
|
|
6
6
|
*
|
|
7
|
-
* This is like `Object.getOwnPropertyDescriptor`, except
|
|
8
|
-
*
|
|
9
|
-
*
|
|
7
|
+
* This is like `Object.getOwnPropertyDescriptor`, except unlike
|
|
8
|
+
* that method, this will travel through the entire prototype chain
|
|
9
|
+
* until it finds the descriptor.
|
|
10
10
|
*
|
|
11
11
|
* @param {object|function} obj - Object to find a property in.
|
|
12
12
|
* @param {string} prop - Name of the property we want the descriptor of.
|
package/lib/objectid.js
CHANGED
|
@@ -56,6 +56,20 @@ class InternalObjectId
|
|
|
56
56
|
return def(obj, this.property, val);
|
|
57
57
|
}
|
|
58
58
|
|
|
59
|
+
/**
|
|
60
|
+
* Remove the tag from a tagged object.
|
|
61
|
+
*
|
|
62
|
+
* @param {*} obj
|
|
63
|
+
*/
|
|
64
|
+
untag(obj)
|
|
65
|
+
{
|
|
66
|
+
if (notNil(obj))
|
|
67
|
+
{
|
|
68
|
+
delete(obj[this.property]);
|
|
69
|
+
}
|
|
70
|
+
return obj;
|
|
71
|
+
}
|
|
72
|
+
|
|
59
73
|
/**
|
|
60
74
|
* Is the specified object tagged with this object id?
|
|
61
75
|
*
|
package/package.json
CHANGED
package/test/types.js
CHANGED