protoblast
Advanced tools
Comparing version 0.7.7 to 0.7.8
@@ -0,1 +1,9 @@ | ||
## 0.7.8 (2021-04-29) | ||
* Add some Terser workarounds | ||
* Make `String#replaceAll()` a polyfill, as it is now part of ECMAScript-2021 | ||
* Fix inflections of 'criteria'/'criterion' | ||
* Make `Function.enforceProperty` accept symbols as keys | ||
* Add the `Branch` class | ||
## 0.7.7 (2021-01-21) | ||
@@ -2,0 +10,0 @@ |
@@ -1528,3 +1528,3 @@ var finished_constitutors = new WeakMap(), | ||
* @since 0.6.6 | ||
* @version 0.7.6 | ||
* @version 0.7.8 | ||
* | ||
@@ -1549,4 +1549,5 @@ * @param {Function} target Target object or function | ||
symbol = Symbol(keys[0]); | ||
setting_symbol = Symbol('setting_' + keys[0]); | ||
// Turn the key into a string in case it's a symbol | ||
symbol = Symbol(String(keys[0])); | ||
setting_symbol = Symbol('setting_' + String(keys[0])); | ||
@@ -1553,0 +1554,0 @@ // Already add the symbol to the prototype |
@@ -81,2 +81,3 @@ /** | ||
[ RegExp( '(quiz)$', 'gi' ), '$1zes' ], | ||
[ RegExp( '(criter)ion$', 'gi'), '$1ia' ], | ||
@@ -113,2 +114,3 @@ [ RegExp( 's$', 'gi' ), 's' ], | ||
[ RegExp( '(child)ren$', 'gi' ), '$1' ], | ||
[ RegExp( '(criteri)a$', 'gi' ), '$1on'], | ||
[ RegExp( '([ti])a$', 'gi' ), '$1um' ], | ||
@@ -137,3 +139,3 @@ [ RegExp( '((a)naly|(b)a|(d)iagno|(p)arenthe|(p)rogno|(s)ynop|(t)he)ses$','gi' ), '$1$2sis' ], | ||
[ RegExp( 'ss$', 'gi' ), 'ss' ], | ||
[ RegExp( 's$', 'gi' ), '' ] | ||
[ RegExp( 's$', 'gi' ), '' ], | ||
], | ||
@@ -140,0 +142,0 @@ |
@@ -31,2 +31,5 @@ module.exports = function BlastInitLoader(modifyPrototype) { | ||
// Needed for Terser & global_defs magic | ||
const __BLAST = Blast; | ||
const version_rx = /([0-9]+)\.([0-9]+)\.?([0-9]+\.?[0-9]*)?/ | ||
@@ -170,6 +173,6 @@ | ||
// Is it a pure, regular browser? | ||
Blast.isBrowser = false; | ||
__BLAST.isBrowser = false; | ||
// Is it running in a node context? | ||
Blast.isNode = false; | ||
__BLAST.isNode = false; | ||
@@ -211,11 +214,11 @@ // Is it running in NW.js? | ||
Blast.isElectron = true; | ||
Blast.isNode = true; | ||
__BLAST.isNode = true; | ||
Globals = global; | ||
} else if (typeof process === 'object' && (process.__node_webkit || process.__nwjs)) { | ||
Blast.isNW = true; | ||
Blast.isNode = true; | ||
__BLAST.isNode = true; | ||
Globals = global; | ||
} else if (typeof window !== 'undefined') { | ||
Globals = window; | ||
Blast.isBrowser = true; | ||
__BLAST.isBrowser = true; | ||
@@ -242,7 +245,7 @@ if (window.navigator && window.navigator.userAgent) { | ||
Globals = self; | ||
Blast.isBrowser = true; | ||
__BLAST.isBrowser = true; | ||
Blast.isWorker = true; | ||
} else { | ||
Globals = global; | ||
Blast.isNode = true; | ||
__BLAST.isNode = true; | ||
} | ||
@@ -419,3 +422,4 @@ | ||
'RURL', | ||
'Cache' | ||
'Cache', | ||
'Branch', | ||
]; | ||
@@ -422,0 +426,0 @@ |
@@ -1584,3 +1584,3 @@ let astral_rx = /\ud83c[\udffb-\udfff](?=\ud83c[\udffb-\udfff])|(?:[^\ud800-\udfff][\u0300-\u036f\ufe20-\ufe23\u20d0-\u20f0]?|[\u0300-\u036f\ufe20-\ufe23\u20d0-\u20f0]|(?:\ud83c[\udde6-\uddff]){2}|[\ud800-\udbff][\udc00-\udfff]|[\ud800-\udfff])[\ufe0e\ufe0f]?(?:[\u0300-\u036f\ufe20-\ufe23\u20d0-\u20f0]|\ud83c[\udffb-\udfff])?(?:\u200d(?:[^\ud800-\udfff]|(?:\ud83c[\udde6-\uddff]){2}|[\ud800-\udbff][\udc00-\udfff])[\ufe0e\ufe0f]?(?:[\u0300-\u036f\ufe20-\ufe23\u20d0-\u20f0]|\ud83c[\udffb-\udfff])?)*/g; | ||
return str; | ||
}); | ||
}, true); | ||
@@ -1587,0 +1587,0 @@ /** |
{ | ||
"name": "protoblast", | ||
"description": "Native object expansion library", | ||
"version": "0.7.7", | ||
"version": "0.7.8", | ||
"author": "Jelle De Loecker <jelle@elevenways.be>", | ||
@@ -6,0 +6,0 @@ "keywords": [ |
Sorry, the diff of this file is not supported yet
704973
53
29314