Skip to content

Commit

Permalink
release (#156)
Browse files Browse the repository at this point in the history
* chore: bump version to 1.0.0

* chore: cleanup deprecated items

* chore: update deps

* feat: async publish/setProperties resolves with ack (#121)

* feat: async publish for announce message

* fix: republish and resubscribe when reinstantiate is called

* feat: add async setProperties, improve tests

* fix: pass pubuid to announce

* chore: update deps

* feat: v4.1 protocols, fixup promises

* feat: update readme and changelog

* build(deps-dev): bump typedoc from 0.25.6 to 0.25.7 (#141)

Bumps [typedoc](https://github.com/TypeStrong/TypeDoc) from 0.25.6 to 0.25.7.
- [Release notes](https://github.com/TypeStrong/TypeDoc/releases)
- [Changelog](https://github.com/TypeStrong/typedoc/blob/master/CHANGELOG.md)
- [Commits](TypeStrong/typedoc@v0.25.6...v0.25.7)

---
updated-dependencies:
- dependency-name: typedoc
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* feat(nt4.1): first pass at adding NT4.1 support (#112)

* chore: update deps, remove dependabot, codecov (#147)

* chore: update deps, remove dependabot, codecov

* feat: fully build, lint, test all packages in ci

* feat: add more coverage reporters

---------

Co-authored-by: Chris Lawson <[email protected]>

* fix: remove strict from schema, add cached property

* build(deps-dev): bump follow-redirects from 1.15.5 to 1.15.6 (#151)

Bumps [follow-redirects](https://github.com/follow-redirects/follow-redirects) from 1.15.5 to 1.15.6.
- [Release notes](https://github.com/follow-redirects/follow-redirects/releases)
- [Commits](follow-redirects/follow-redirects@v1.15.5...v1.15.6)

---
updated-dependencies:
- dependency-name: follow-redirects
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* build(deps): bump the npm_and_yarn group across 1 directory with 3 updates (#154)

Bumps the npm_and_yarn group with 3 updates in the / directory: [ws](https://github.com/websockets/ws), [braces](https://github.com/micromatch/braces) and [ejs](https://github.com/mde/ejs).


Updates `ws` from 8.16.0 to 8.17.1
- [Release notes](https://github.com/websockets/ws/releases)
- [Commits](websockets/ws@8.16.0...8.17.1)

Updates `braces` from 3.0.2 to 3.0.3
- [Changelog](https://github.com/micromatch/braces/blob/master/CHANGELOG.md)
- [Commits](micromatch/braces@3.0.2...3.0.3)

Updates `ejs` from 3.1.9 to 3.1.10
- [Release notes](https://github.com/mde/ejs/releases)
- [Commits](mde/ejs@v3.1.9...v3.1.10)

---
updated-dependencies:
- dependency-name: ws
  dependency-type: direct:production
  dependency-group: npm_and_yarn
- dependency-name: braces
  dependency-type: indirect
  dependency-group: npm_and_yarn
- dependency-name: ejs
  dependency-type: indirect
  dependency-group: npm_and_yarn
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* build(deps): bump the npm_and_yarn group with 3 updates (#155)

Bumps the npm_and_yarn group with 3 updates: [axios](https://github.com/axios/axios), [micromatch](https://github.com/micromatch/micromatch) and [lint-staged](https://github.com/lint-staged/lint-staged).


Updates `axios` from 1.6.5 to 1.7.7
- [Release notes](https://github.com/axios/axios/releases)
- [Changelog](https://github.com/axios/axios/blob/v1.x/CHANGELOG.md)
- [Commits](axios/axios@v1.6.5...v1.7.7)

Updates `micromatch` from 4.0.5 to 4.0.8
- [Release notes](https://github.com/micromatch/micromatch/releases)
- [Changelog](https://github.com/micromatch/micromatch/blob/master/CHANGELOG.md)
- [Commits](micromatch/micromatch@4.0.5...4.0.8)

Updates `lint-staged` from 15.2.0 to 15.2.9
- [Release notes](https://github.com/lint-staged/lint-staged/releases)
- [Changelog](https://github.com/lint-staged/lint-staged/blob/master/CHANGELOG.md)
- [Commits](lint-staged/lint-staged@v15.2.0...v15.2.9)

---
updated-dependencies:
- dependency-name: axios
  dependency-type: indirect
  dependency-group: npm_and_yarn
- dependency-name: micromatch
  dependency-type: indirect
  dependency-group: npm_and_yarn
- dependency-name: lint-staged
  dependency-type: direct:development
  dependency-group: npm_and_yarn
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Create LICENSE

* chore: upgrade packages

* chore: bump codecov version

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: Chris <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Josh Bacon <[email protected]>
  • Loading branch information
4 people authored Oct 28, 2024
1 parent b10bf63 commit 69ba5dc
Show file tree
Hide file tree
Showing 66 changed files with 5,471 additions and 4,202 deletions.
6 changes: 0 additions & 6 deletions .github/dependabot.yml

This file was deleted.

15 changes: 11 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,22 @@ jobs:
with:
fetch-depth: 0
# Cache node_modules
- uses: actions/setup-node@v3
- uses: actions/setup-node@v4
with:
node-version: 20
cache: 'npm'
- run: npm ci
- uses: nrwl/nx-set-shas@v3
- uses: nrwl/nx-set-shas@v4
# This line is needed for nx affected to work when CI is running on a PR
- run: git branch --track main origin/main

- run: npx nx format:check
- run: npx nx affected -t build
- run: npx nx affected -t lint,test --parallel=3
- run: npx nx run-many -t build
- run: npx nx run-many -t lint
- run: npx nx run-many -t test --coverage

- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v4
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
flags: unittests
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -37,4 +37,5 @@ testem.log
.DS_Store
Thumbs.db

.nx/cache
.nx/cache
.nx/workspace-data
3 changes: 0 additions & 3 deletions .husky/commit-msg
Original file line number Diff line number Diff line change
@@ -1,4 +1 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

npx --no -- commitlint --edit ${1}
3 changes: 0 additions & 3 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1,4 +1 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

npx lint-staged
3 changes: 2 additions & 1 deletion .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,5 @@
/package-lock.json
/docs

/.nx/cache
/.nx/cache
/.nx/workspace-data
21 changes: 21 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2024 Chris Lawson

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
18 changes: 9 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -83,19 +83,19 @@ createTopic<T extends NetworkTablesTypes>(name: string, typeInfo: NetworkTablesT
Once a topic has been created, it can be used as a subscriber:

```typescript
subscribe(
callback: (_: T | null) => void,
immediateNotify = false,
options: SubscribeOptions = {},
id?: number,
save = true
)
subscribe(
callback: (_: T | null) => void,
immediateNotify = false,
options: SubscribeOptions = {},
id?: number,
save = true
)
```

and/or a publisher:

```typescript
publish(properties: TopicProperties = {}, id?: number)
await publish(properties: TopicProperties = {}, id?: number)
```

For example, here's a subscription for a Gyro:
Expand Down Expand Up @@ -127,7 +127,7 @@ const ntcore = NetworkTables.getInstanceByTeam(973);
const autoModeTopic = ntcore.createTopic<string>('/MyTable/autoMode', NetworkTablesTypeInfos.kString, 'No Auto');

// Make us the publisher
autoModeTopic.publish();
await autoModeTopic.publish();

// Set a new value, this will error if we aren't the publisher!
autoModeTopic.setValue('25 Ball Auto and Climb');
Expand Down
18 changes: 18 additions & 0 deletions docs/assets/icons.js

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

Loading

0 comments on commit 69ba5dc

Please sign in to comment.