Skip to content

Commit

Permalink
Prepare v1.2.0 release (#1647)
Browse files Browse the repository at this point in the history
  • Loading branch information
ddbeck authored Aug 23, 2024
1 parent ce877b6 commit 5b1f56a
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions packages/web-features/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,14 @@ npm install web-features
```

```js
import { features, groups, snapshots } from "web-features";
import { browsers, features, groups, snapshots } from "web-features";
```

Or, without Node.js:

```js
import data from "web-features/data.json" with { type: "json" };
const { features, groups, snapshots } = data;
const { browsers, features, groups, snapshots } = data;
```

To import the JSON schema with or without Node.js:
Expand Down
4 changes: 2 additions & 2 deletions packages/web-features/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import { fileURLToPath } from "node:url";
import { WebFeaturesData } from "./types";

const jsonPath = fileURLToPath(new URL("./data.json", import.meta.url));
const { features, groups, snapshots } = JSON.parse(
const { browsers, features, groups, snapshots } = JSON.parse(
readFileSync(jsonPath, { encoding: "utf-8" }),
) as WebFeaturesData;

export { features, groups, snapshots };
export { browsers, features, groups, snapshots };
4 changes: 2 additions & 2 deletions packages/web-features/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/web-features/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "web-features",
"description": "Curated list of Web platform features",
"version": "1.1.0",
"version": "1.2.0",
"license": "Apache-2.0",
"repository": {
"type": "git",
Expand Down

0 comments on commit 5b1f56a

Please sign in to comment.