Comparing version 4.0.0 to 4.1.0
@@ -107,2 +107,7 @@ (function() { | ||
//--------------------------------------------------------------------------------------------------------- | ||
new(...P) { | ||
return new this.constructor(...P); | ||
} | ||
//========================================================================================================= | ||
@@ -144,1 +149,3 @@ // KEYMETHOD FACTORY | ||
}).call(this); | ||
//# sourceMappingURL=main.js.map |
{ | ||
"name": "multimix", | ||
"version": "4.0.0", | ||
"version": "4.1.0", | ||
"description": "flexible object copying", | ||
@@ -5,0 +5,0 @@ "main": "lib/main.js", |
@@ -7,2 +7,3 @@ <!-- START doctoc generated TOC please keep comment here to allow auto update --> | ||
- [Usage](#usage) | ||
- [Methods](#methods) | ||
- [Links](#links) | ||
@@ -129,3 +130,11 @@ - [Motivation](#motivation) | ||
### Methods | ||
* **`@new ( P... ) ->`**—instances of derivatives of MultiMix have a method `new()` that returns a new | ||
instances of the same class; `j = i.new settings` is just a shortcut for the not-so-obviously correct | ||
incantation `j = new i.constructor settings`. Sine the standard use case for classes derived from | ||
`Multimix` is one-per-module libraries (that may or may not need or allow to be configured), it is | ||
practical to have a standardized way to produce new library instances where called for. | ||
## Links | ||
@@ -132,0 +141,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
44104
269
163
0