-
Notifications
You must be signed in to change notification settings - Fork 72
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* esm * node 18 * next * 5.0.0-rc.1 * remove jsdom * break circular import * bump versions in README
- Loading branch information
Showing
30 changed files
with
1,096 additions
and
1,792 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,38 +1,49 @@ | ||
{ | ||
"name": "@observablehq/runtime", | ||
"version": "4.28.0", | ||
"license": "ISC", | ||
"main": "dist/runtime.umd.js", | ||
"module": "src/index.js", | ||
"version": "5.0.0-rc.1", | ||
"author": { | ||
"name": "Observable, Inc.", | ||
"url": "https://observablehq.com" | ||
}, | ||
"license": "ISC", | ||
"type": "module", | ||
"main": "src/index.js", | ||
"module": "src/index.js", | ||
"jsdelivr": "dist/runtime.umd.js", | ||
"unpkg": "dist/runtime.umd.js", | ||
"exports": { | ||
"umd": "./dist/runtime.umd.js", | ||
"default": "./src/index.js" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/observablehq/runtime.git" | ||
}, | ||
"files": [ | ||
"dist/**/*.js", | ||
"src/**/*.js" | ||
], | ||
"scripts": { | ||
"test": "tape -r esm 'test/**/*-test.js'", | ||
"test": "mocha 'test/**/*-test.js' && eslint src test", | ||
"prepublishOnly": "rm -rf dist && rollup -c", | ||
"postpublish": "git push && git push --tags" | ||
}, | ||
"files": [ | ||
"src/**/*.js", | ||
"dist/**/*.js" | ||
], | ||
"_moduleAliases": { | ||
"@observablehq/runtime": "./src/index.js" | ||
}, | ||
"dependencies": { | ||
"@observablehq/inspector": "^3.2.2", | ||
"@observablehq/stdlib": "^3.4.1" | ||
"@observablehq/inspector": "4.0.0-rc.1", | ||
"@observablehq/stdlib": "4.0.0-rc.1" | ||
}, | ||
"devDependencies": { | ||
"eslint": "^7.18.0", | ||
"esm": "^3.2.25", | ||
"jsdom": "^17.0.0", | ||
"rollup": "^2.37.1", | ||
"rollup-plugin-node-resolve": "^5.2.0", | ||
"rollup-plugin-terser": "^7.0.2", | ||
"tape": "^4.13.3", | ||
"tape-await": "^0.1.2" | ||
"@rollup/plugin-node-resolve": "^15.0.1", | ||
"eslint": "^8.27.0", | ||
"mocha": "^10.1.0", | ||
"module-alias": "^2.2.2", | ||
"rollup": "^3.2.5", | ||
"rollup-plugin-terser": "^7.0.2" | ||
}, | ||
"publishConfig": { | ||
"tag": "next" | ||
} | ||
} |
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,3 +1,3 @@ | ||
var prototype = Array.prototype; | ||
export var map = prototype.map; | ||
export var forEach = prototype.forEach; | ||
const prototype = Array.prototype; | ||
export const map = prototype.map; | ||
export const forEach = prototype.forEach; |
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,3 @@ | ||
export default function(x) { | ||
return function() { | ||
return x; | ||
}; | ||
export function constant(x) { | ||
return () => x; | ||
} |
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,8 +1,8 @@ | ||
export function RuntimeError(message, input) { | ||
this.message = message + ""; | ||
this.input = input; | ||
export class RuntimeError extends Error { | ||
constructor(message, input) { | ||
super(message); | ||
this.input = input; | ||
} | ||
} | ||
|
||
RuntimeError.prototype = Object.create(Error.prototype); | ||
RuntimeError.prototype.name = "RuntimeError"; | ||
RuntimeError.prototype.constructor = RuntimeError; |
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,3 +1,3 @@ | ||
export default function(x) { | ||
export function identity(x) { | ||
return x; | ||
} |
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,6 +1,4 @@ | ||
import {Inspector} from "@observablehq/inspector"; | ||
import {Library} from "@observablehq/stdlib"; | ||
import {RuntimeError} from "./errors"; | ||
import Runtime from "./runtime"; | ||
|
||
export {Inspector, Library, Runtime, RuntimeError}; | ||
export {Inspector} from "@observablehq/inspector"; | ||
export {Library} from "@observablehq/stdlib"; | ||
export {RuntimeError} from "./errors.js"; | ||
export {Runtime} from "./runtime.js"; |
This file was deleted.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
export default function() {} | ||
export function noop() {} |
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 @@ | ||
export default function(e) { | ||
return function() { | ||
throw e; | ||
export function rethrow(error) { | ||
return () => { | ||
throw error; | ||
}; | ||
} |
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.