Skip to content

Commit

Permalink
changelog: 0.12.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Will committed Sep 8, 2024
1 parent eb2f212 commit 2e4c2c3
Showing 1 changed file with 14 additions and 9 deletions.
23 changes: 14 additions & 9 deletions changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,20 @@

## 0.12.0

Added support for using this project in C Python and Node.js:
Added support for using this project in C, Python and Node.js:
- C support as a shared or static library (one with a C-ABI)
- Node.js support as an NPM package for a "native addon"
- Python support as a Wheel for an FFI bridge to the C shared library

The interfaces look like this:
Each of the new bindings have a basic test suite.

Some examples for these new languages.
Each of the examples has similar behavior:
- Watch for and display all events
- Watch for events on every filesystem under the root directory `/`
- Stop when any terminal input is received

### C

```c
#include "wtr/watcher-c.h"
Expand All @@ -31,13 +39,17 @@ int main() {
}
```
### Python
```python
from watcher import Watch
with Watch("/", print):
input()
```

### Node.js/TypeScript/JavaScript

```javascript
import * as watcher from 'watcher';

Expand All @@ -51,13 +63,6 @@ process.stdin.on('data', () => {
});
```

Each of those examples does the same thing:
Show all events on every filesystem until the user presses enter.

Added basic test suites for each of these bindings.

Minor updates to documentation and formatting.

## 0.11.1

Documentation and formatting.
Expand Down

0 comments on commit 2e4c2c3

Please sign in to comment.