Skip to content

Commit

Permalink
Merge pull request #19 from natemoo-re/changeset-release/main
Browse files Browse the repository at this point in the history
[ci] release
  • Loading branch information
natemoo-re authored Oct 14, 2022
2 parents 88a7c65 + 19b3122 commit 077e976
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 26 deletions.
25 changes: 0 additions & 25 deletions .changeset/young-bananas-argue.md

This file was deleted.

26 changes: 26 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,31 @@
# ultrahtml

## 0.3.0

### Minor Changes

- 2de70f3: Add `ultrahtml/selector` module which exports `querySelector`, `querySelectorAll`, and `matches` functions.

To use `querySelectorAll`, pass the root `Node` as the first argument and any valid CSS selector as the second argument. Note that if a CSS selector you need is not yet implemented, you are invited to [open an issue](https://github.com/natemoo-re/ultrahtml/issues).

```js
import { parse } from "ultrahtml";
import { querySelectorAll, matches } from "ultrahtml/selector";

const doc = parse(`
<html>
<head>
<title>Demo</title>
/head>
<body>
<h1>Hello world!</h1>
</body>
</html>
`);
const h1 = querySelector(doc, "h1");
const match = matches(h1, "h1");
```

## 0.2.1

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "ultrahtml",
"type": "module",
"version": "0.2.1",
"version": "0.3.0",
"types": "./dist/index.d.ts",
"repository": {
"type": "git",
Expand Down

0 comments on commit 077e976

Please sign in to comment.