fbjs
Advanced tools
Comparing version 1.0.0 to 2.0.0
@@ -1,3 +0,13 @@ | ||
## [Unreleased] | ||
## [2.0.0] - 2020-07-29 | ||
### Changed | ||
- Upgraded `core-js` dependency to ^3.6.4 | ||
- Replaced `isomorphic-fetch` dependency with `cross-fetch` | ||
### Fixed | ||
- Fixed `__DEV__` check in `invariant` | ||
## [1.0.0] - 2018-09-18 | ||
### Added | ||
@@ -4,0 +14,0 @@ - More modules, primarily focused on the requirements of Fixed Data Table. |
@@ -10,3 +10,3 @@ /** | ||
// its own fetch polyfill. That should exist on `global`. If that doesn't exist | ||
// then we'll try to polyfill, which might not work correctly in all environments. | ||
// then we'll try to ponyfill, which might not work correctly in all environments. | ||
@@ -16,3 +16,3 @@ if (global.fetch) { | ||
} else { | ||
module.exports = require("isomorphic-fetch"); | ||
module.exports = require("cross-fetch"); | ||
} |
@@ -11,7 +11,7 @@ /** | ||
var validateFormat = process.env.NODE_ENV !== "production" ? function (format) {} : function (format) { | ||
var validateFormat = process.env.NODE_ENV !== "production" ? function (format) { | ||
if (format === undefined) { | ||
throw new Error('invariant(...): Second argument must be a string.'); | ||
} | ||
}; | ||
} : function (format) {}; | ||
/** | ||
@@ -18,0 +18,0 @@ * Use invariant() to assert state which your program assumes to be true. |
@@ -10,2 +10,2 @@ "use strict"; | ||
*/ | ||
module.exports = require("core-js/library/es6/map"); | ||
module.exports = require("core-js/es/map"); |
@@ -13,3 +13,3 @@ "use strict"; | ||
var performanceNow; | ||
var loadTime = Date.now(); | ||
/** | ||
@@ -21,12 +21,6 @@ * Detect if we can use `window.performance.now()` and gracefully fallback to | ||
if (performance.now) { | ||
performanceNow = function performanceNow() { | ||
return performance.now(); | ||
}; | ||
} else { | ||
performanceNow = function performanceNow() { | ||
return Date.now(); | ||
}; | ||
} | ||
module.exports = performanceNow; | ||
module.exports = performance.now ? function () { | ||
return performance.now(); | ||
} : function () { | ||
return Date.now() - loadTime; | ||
}; |
@@ -10,2 +10,2 @@ "use strict"; | ||
*/ | ||
module.exports = require("core-js/library/es6/set"); | ||
module.exports = require("core-js/es/set"); |
{ | ||
"name": "fbjs", | ||
"version": "1.0.0", | ||
"version": "2.0.0", | ||
"description": "A collection of utility libraries used by other Facebook JS projects", | ||
@@ -22,11 +22,10 @@ "main": "index.js", | ||
"fbjs-scripts": "file:../fbjs-scripts", | ||
"flow-bin": "^0.80.0", | ||
"gulp": "^3.9.1", | ||
"flow-bin": "^0.99.0", | ||
"gulp": "^4.0.2", | ||
"gulp-babel": "^8.0.0", | ||
"gulp-flatten": "^0.2.0", | ||
"gulp-rename": "^1.2.2", | ||
"gulp-flatten": "^0.4.0", | ||
"gulp-rename": "^2.0.0", | ||
"immutable": "^3.7.6", | ||
"jest-cli": "^17.0.3", | ||
"merge-stream": "^1.0.0", | ||
"run-sequence": "^1.1.5" | ||
"jest-cli": "^23.6.0", | ||
"merge-stream": "^1.0.0" | ||
}, | ||
@@ -48,8 +47,7 @@ "license": "MIT", | ||
], | ||
"persistModuleRegistryBetweenSpecs": true, | ||
"rootDir": "", | ||
"setupFiles": [ | ||
"node_modules/fbjs-scripts/jest/environment.js" | ||
"fbjs-scripts/jest/environment.js" | ||
], | ||
"testPathDirs": [ | ||
"roots": [ | ||
"<rootDir>/src" | ||
@@ -59,3 +57,3 @@ ], | ||
"transform": { | ||
".*": "node_modules/fbjs-scripts/jest/preprocessor.js" | ||
".*": "fbjs-scripts/jest/preprocessor.js" | ||
}, | ||
@@ -71,5 +69,5 @@ "transformIgnorePatterns": [ | ||
"dependencies": { | ||
"core-js": "^2.4.1", | ||
"core-js": "^3.6.4", | ||
"cross-fetch": "^3.0.4", | ||
"fbjs-css-vars": "^1.0.0", | ||
"isomorphic-fetch": "^2.1.1", | ||
"loose-envify": "^1.0.0", | ||
@@ -76,0 +74,0 @@ "object-assign": "^4.1.0", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
441825
12
4
6555
+ Addedcross-fetch@^3.0.4
+ Addedcore-js@3.37.1(transitive)
+ Addedcross-fetch@3.1.8(transitive)
+ Addednode-fetch@2.7.0(transitive)
+ Addedtr46@0.0.3(transitive)
+ Addedwebidl-conversions@3.0.1(transitive)
+ Addedwhatwg-url@5.0.0(transitive)
- Removedisomorphic-fetch@^2.1.1
- Removedcore-js@2.6.12(transitive)
- Removedencoding@0.1.13(transitive)
- Removediconv-lite@0.6.3(transitive)
- Removedis-stream@1.1.0(transitive)
- Removedisomorphic-fetch@2.2.1(transitive)
- Removednode-fetch@1.7.3(transitive)
- Removedsafer-buffer@2.1.2(transitive)
- Removedwhatwg-fetch@3.6.20(transitive)
Updatedcore-js@^3.6.4