-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Merge remote-tracking branch 'origin/dev'
- update renderer artifacts - stricten dash dependencies versions
- Loading branch information
Showing
30 changed files
with
659 additions
and
254 deletions.
There are no files selected for viewing
Validating CODEOWNERS rules …
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
# These owners will be the default owners for everything in | ||
# the repo. Unless a later match takes precedence | ||
* @alexcjohnson @byronz @Marc-Andre-Rivet | ||
* @alexcjohnson @Marc-Andre-Rivet | ||
|
||
_r_* @alexcjohnson @byronz @Marc-Andre-Rivet @rpkyle | ||
_r_* @alexcjohnson @Marc-Andre-Rivet @rpkyle |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
import sys | ||
|
||
__file__ | ||
__version__ = "1.2.2" | ||
__version__ = "1.2.3" | ||
|
||
_js_dist_dependencies = [ | ||
{ | ||
|
@@ -42,7 +42,7 @@ | |
{ | ||
"relative_package_path": "{}.min.js".format(__name__), | ||
"dev_package_path": "{}.dev.js".format(__name__), | ||
"external_url": "https://unpkg.com/[email protected].2" | ||
"external_url": "https://unpkg.com/[email protected].3" | ||
"/dash_renderer/dash_renderer.min.js", | ||
"namespace": "dash_renderer", | ||
}, | ||
|
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,12 @@ | ||
{ | ||
"MD5 (dash_renderer.dev.js)":"9f94b1dfda81223a2f277573cc4d34af", | ||
"MD5 (dash_renderer.min.js)":"50050e60b65a8982d75e83b7760324dd", | ||
"MD5 (dash_renderer.dev.js)":"561787639c4e4e6dfc2ed334f8b9c08e", | ||
"MD5 (dash_renderer.min.js)":"b89f7fc48aecc81250a3a002f0f0a5a0", | ||
"MD5 ([email protected])":"ed6472b73ae010eee88282933a04c2a1", | ||
"MD5 ([email protected])":"85947944e396a28895fad5f553eee36f", | ||
"MD5 ([email protected])":"e3053393609bd2744010498629a43597", | ||
"MD5 ([email protected])":"d7f8afaf3370a228c8d5c802c9d9a102", | ||
"MD5 ([email protected])":"fad5842bd019c3878795ec52059f47fc", | ||
"MD5 ([email protected])":"bb95f4cd851114c374c3858e9c51da10", | ||
"MD5 ([email protected])":"f808b8e8ab51b0d9525795db3768cd86", | ||
"dash-renderer":"1.2.2" | ||
"dash-renderer":"1.2.3" | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,88 @@ | ||
/* | ||
* Copied out of prop-types and modified - inspired by check-prop-types, but | ||
* simplified and tweaked to our needs: we don't need the NODE_ENV check, | ||
* we report all errors, not just the first one, and we don't need the throwing | ||
* variant `assertPropTypes`. | ||
*/ | ||
import ReactPropTypesSecret from 'prop-types/lib/ReactPropTypesSecret'; | ||
|
||
/** | ||
* Assert that the values match with the type specs. | ||
* | ||
* @param {object} typeSpecs Map of name to a ReactPropType | ||
* @param {object} values Runtime values that need to be type-checked | ||
* @param {string} location e.g. "prop", "context", "child context" | ||
* @param {string} componentName Name of the component for error messages. | ||
* @param {?Function} getStack Returns the component stack. | ||
* @return {string} Any error messsage resulting from checking the types | ||
*/ | ||
export default function checkPropTypes( | ||
typeSpecs, | ||
values, | ||
location, | ||
componentName, | ||
getStack | ||
) { | ||
const errors = []; | ||
for (const typeSpecName in typeSpecs) { | ||
if (typeSpecs.hasOwnProperty(typeSpecName)) { | ||
let error; | ||
// Prop type validation may throw. In case they do, we don't want to | ||
// fail the render phase where it didn't fail before. So we log it. | ||
// After these have been cleaned up, we'll let them throw. | ||
try { | ||
// This is intentionally an invariant that gets caught. It's the same | ||
// behavior as without this statement except with a better message. | ||
if (typeof typeSpecs[typeSpecName] !== 'function') { | ||
error = Error( | ||
(componentName || 'React class') + | ||
': ' + | ||
location + | ||
' type `' + | ||
typeSpecName + | ||
'` is invalid; ' + | ||
'it must be a function, usually from the `prop-types` package, but received `' + | ||
typeof typeSpecs[typeSpecName] + | ||
'`.' | ||
); | ||
error.name = 'Invariant Violation'; | ||
} else { | ||
error = typeSpecs[typeSpecName]( | ||
values, | ||
typeSpecName, | ||
componentName, | ||
location, | ||
null, | ||
ReactPropTypesSecret | ||
); | ||
} | ||
} catch (ex) { | ||
error = ex; | ||
} | ||
if (error && !(error instanceof Error)) { | ||
errors.push( | ||
(componentName || 'React class') + | ||
': type specification of ' + | ||
location + | ||
' `' + | ||
typeSpecName + | ||
'` is invalid; the type checker ' + | ||
'function must return `null` or an `Error` but returned a ' + | ||
typeof error + | ||
'. ' + | ||
'You may have forgotten to pass an argument to the type checker ' + | ||
'creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and ' + | ||
'shape all require an argument).' | ||
); | ||
} | ||
if (error instanceof Error) { | ||
var stack = (getStack && getStack()) || ''; | ||
|
||
errors.push( | ||
'Failed ' + location + ' type: ' + error.message + stack | ||
); | ||
} | ||
} | ||
} | ||
return errors.join('\n\n'); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.