Skip to content

Commit

Permalink
chore: prepare 3.0 release (#681)
Browse files Browse the repository at this point in the history
* chore: bump to 3.0

fixes #654

* docs: update import

* chore: remove babel deps

* fix: move types into exports

* chore: undo bump

* revuild package
  • Loading branch information
domoritz authored Feb 7, 2025
1 parent c02e396 commit 3493631
Show file tree
Hide file tree
Showing 6 changed files with 19 additions and 1,992 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ We do not change data in patch releases except to resolve formatting issues. Min

You can also get the data directly via HTTP served by GitHub or jsDelivr (a fast CDN) like:

https://vega.github.io/vega-datasets/data/cars.json or with a fixed version (recommended) such as https://cdn.jsdelivr.net/npm/vega-datasets@2/data/cars.json.
https://vega.github.io/vega-datasets/data/cars.json or with a fixed version (recommended) such as https://cdn.jsdelivr.net/npm/vega-datasets@3/data/cars.json.

You can find a full listing of the available datasets at https://cdn.jsdelivr.net/npm/vega-datasets/data/.

Expand All @@ -50,7 +50,7 @@ Now you have all the datasets in a folder in `node_modules/vega-datasets/data/`.
npm i vega-datasets
```

Now you can import `data = require('vega-datasets')` and access the URLs of any dataset with `data[NAME].url`. `data[NAME]()` returns a promise that resolves to the actual data fetched from the URL. We use d3-dsv to parse CSV files.
Now you can import `import data from 'vega-datasets';` and access the URLs of any dataset with `data[NAME].url`. `data[NAME]()` returns a promise that resolves to the actual data fetched from the URL. We use d3-dsv to parse CSV files.

Here is a full example

Expand Down
2 changes: 1 addition & 1 deletion datapackage.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
}
],
"version": "2.11.0",
"created": "2025-02-02T14:39:56.173973+00:00",
"created": "2025-02-07T20:36:42.016594+00:00",
"resources": [
{
"name": "7zip.png",
Expand Down
2 changes: 1 addition & 1 deletion datapackage.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# vega-datasets
`2.11.0` | [GitHub](http://github.com/vega/vega-datasets.git) | 2025-02-02 14:39:56 [UTC]
`2.11.0` | [GitHub](http://github.com/vega/vega-datasets.git) | 2025-02-07 20:36:42 [UTC]

Common repository for example datasets used by Vega related projects.
BSD-3-Clause license applies only to package code and infrastructure. Users should verify their use of datasets
Expand Down
Loading

0 comments on commit 3493631

Please sign in to comment.