Skip to content

Commit 138849d

Browse files
authored
v6; more modular (#374)
* more modular * 6.0.0 * fix #328; document module.builtin * delete obsolete tests * serialize variable reevaluation * fix stale computation with no inputs * runtime.dispose tests * 6.0.0-rc.1 * italicize variable names * remove blank lines * shared undefined promise * 6.0.0
1 parent 7566247 commit 138849d

21 files changed

+474
-892
lines changed

.eslintignore

Lines changed: 0 additions & 1 deletion
This file was deleted.

.github/workflows/nodejs.yml

Lines changed: 0 additions & 24 deletions
This file was deleted.

.github/workflows/publish.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: Publish
2+
3+
on:
4+
workflow_dispatch: {}
5+
release:
6+
types: [published]
7+
8+
jobs:
9+
publish:
10+
runs-on: ubuntu-latest
11+
permissions:
12+
contents: read
13+
packages: write
14+
steps:
15+
- uses: actions/checkout@v4
16+
- uses: actions/setup-node@v4
17+
with:
18+
node-version: 20
19+
cache: yarn
20+
- run: yarn --frozen-lockfile
21+
- run: yarn test
22+
- run: npm publish
23+
env:
24+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

.github/workflows/test.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: Test
2+
3+
on:
4+
push:
5+
branches: [main]
6+
pull_request:
7+
branches: [main]
8+
9+
jobs:
10+
test:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v4
14+
- uses: actions/setup-node@v4
15+
with:
16+
node-version: 20
17+
cache: yarn
18+
- run: yarn --frozen-lockfile
19+
- run: yarn test

.gitignore

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
1-
*.sublime-workspace
21
.DS_Store
3-
.esm-cache/
42
dist/
53
node_modules
64
npm-debug.log

CONTRIBUTING.md

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2,24 +2,14 @@ The Observable runtime is open source and released under the [ISC License](https
22

33
## Development
44

5-
Install dependencies:
5+
We use Yarn 1.x (Classic). To install dependencies:
66

77
```
88
yarn
99
```
1010

11-
Run tests with Mocha:
11+
To run tests with Mocha:
1212

1313
```
1414
yarn test
1515
```
16-
17-
Build with Rollup:
18-
19-
```
20-
yarn prepublishOnly
21-
```
22-
23-
## For internal use
24-
25-
See our checklist for [publishing a new release](https://observablehq.com/@observablehq/publishing-new-open-source-releases).

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Copyright 2018-2023 Observable, Inc.
1+
Copyright 2018-2024 Observable, Inc.
22

33
Permission to use, copy, modify, and/or distribute this software for any purpose
44
with or without fee is hereby granted, provided that the above copyright notice

README.md

Lines changed: 40 additions & 105 deletions
Large diffs are not rendered by default.

package.json

Lines changed: 3 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@observablehq/runtime",
3-
"version": "5.9.9",
3+
"version": "6.0.0",
44
"author": {
55
"name": "Observable, Inc.",
66
"url": "https://observablehq.com"
@@ -9,38 +9,25 @@
99
"type": "module",
1010
"main": "src/index.js",
1111
"module": "src/index.js",
12-
"jsdelivr": "dist/runtime.umd.js",
13-
"unpkg": "dist/runtime.umd.js",
1412
"exports": {
15-
"umd": "./dist/runtime.umd.js",
1613
"default": "./src/index.js"
1714
},
1815
"repository": {
1916
"type": "git",
2017
"url": "https://github.com/observablehq/runtime.git"
2118
},
2219
"files": [
23-
"dist/**/*.js",
2420
"src/**/*.js"
2521
],
2622
"scripts": {
27-
"test": "mocha 'test/**/*-test.js' && eslint src test",
28-
"prepublishOnly": "rm -rf dist && rollup -c",
29-
"postpublish": "git push && git push --tags"
23+
"test": "mocha 'test/**/*-test.js' && eslint src test"
3024
},
3125
"_moduleAliases": {
3226
"@observablehq/runtime": "./src/index.js"
3327
},
34-
"dependencies": {
35-
"@observablehq/inspector": "^5.0.0",
36-
"@observablehq/stdlib": "^5.0.0"
37-
},
3828
"devDependencies": {
39-
"@rollup/plugin-node-resolve": "^15.0.1",
4029
"eslint": "^8.27.0",
4130
"mocha": "^10.1.0",
42-
"module-alias": "^2.2.2",
43-
"rollup": "^3.2.5",
44-
"rollup-plugin-terser": "^7.0.2"
31+
"module-alias": "^2.2.2"
4532
}
4633
}

rollup.config.js

Lines changed: 0 additions & 49 deletions
This file was deleted.

0 commit comments

Comments
 (0)