Skip to content

Commit

Permalink
Merge pull request #773 from vega/next
Browse files Browse the repository at this point in the history
  • Loading branch information
domoritz authored Oct 27, 2021
2 parents b8135e2 + d522c10 commit ff682c3
Show file tree
Hide file tree
Showing 6 changed files with 702 additions and 618 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
- name: Prepare repository
run: git fetch --unshallow --tags

- uses: actions/setup-node@v2.4.0
- uses: actions/setup-node@v2.4.1
with:
registry-url: "https://registry.npmjs.org"
node-version: "15"
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
- uses: actions/checkout@v2

- name: Setup Node
uses: actions/setup-node@v2.4.0
uses: actions/setup-node@v2.4.1
with:
node-version: "15"

Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
"devDependencies": {
"@auto-it/conventional-commits": "^10.32.0",
"@auto-it/first-time-contributor": "^10.32.0",
"@rollup/plugin-commonjs": "20.0.0",
"@rollup/plugin-commonjs": "21.0.1",
"@rollup/plugin-json": "^4.1.0",
"@rollup/plugin-node-resolve": "^13.0.4",
"@types/semver": "^7.3.8",
Expand All @@ -54,7 +54,7 @@
"node-sass": "^6.0.1",
"rollup-plugin-bundle-size": "^1.0.3",
"rollup-plugin-terser": "^7.0.2",
"rollup": "2.56.3",
"rollup": "2.58.1",
"typescript": "^4.4.3",
"vega-lite-dev-config": "^0.18.0",
"vega-lite": "^5.0.0",
Expand Down
3 changes: 3 additions & 0 deletions src/embed.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@ import post from './post';
import embedStyle from './style';
import {Config, Mode} from './types';
import {mergeDeep} from './util';
import pkg from '../package.json';

export const version = pkg.version;

export * from './types';

Expand Down
5 changes: 2 additions & 3 deletions src/index.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import {isString} from 'vega';
import pkg from '../package.json';
import container from './container';
import embed, {vega, vegaLite} from './embed';
import embed, {vega, vegaLite, version} from './embed';
import {isURL} from './util';

/**
Expand All @@ -27,6 +26,6 @@ const wrapper: Wrapper = (...args: any[]): any => {
(wrapper as any).embed = embed;
(wrapper as any).vega = vega;
(wrapper as any).default = embed;
(wrapper as any).version = pkg.version;
(wrapper as any).version = version;

export default wrapper;
Loading

0 comments on commit ff682c3

Please sign in to comment.