Runtime-deprecate ospec, change change-log to changelog, fix a few assorted bugs (#2578)
This commit is contained in:
parent
1630b06106
commit
9f0dc2ab46
76 changed files with 484 additions and 410 deletions
|
|
@ -3,6 +3,12 @@
|
|||
if (typeof module !== "undefined") module["exports"] = m()
|
||||
else window.o = m()
|
||||
})(function init(name) {
|
||||
console.warn(
|
||||
"Please switch to the `ospec` package to remove this warning and see " +
|
||||
"the most recent features. Using the `ospec` bundled within Mithril " +
|
||||
"is deprecated, and it will be removed in the next major release."
|
||||
)
|
||||
|
||||
var spec = {}, subjects = [], results, only = [], ctx = spec, start, stack = 0, nextTickish, hasProcess = typeof process === "object", hasOwn = ({}).hasOwnProperty
|
||||
var ospecFileName = getStackName(ensureStackTrace(new Error), /[\/\\](.*?):\d+:\d+/), timeoutStackName
|
||||
var globalTimeout = noTimeoutRightNow
|
||||
|
|
|
|||
|
|
@ -6,7 +6,11 @@ var o, callAsync
|
|||
if (typeof require !== "undefined") {
|
||||
/* eslint-disable global-require */
|
||||
callAsync = require("../../test-utils/callAsync")
|
||||
var warn = console.warn
|
||||
// Let's drop the warning to leave the console a little less noisy.
|
||||
console.warn = function() {}
|
||||
o = require("../ospec")
|
||||
console.warn = warn
|
||||
/* eslint-enable global-require */
|
||||
} else {
|
||||
callAsync = typeof setImmediate === "function" ? setImmediate : setTimeout
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue