Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove osc-min dependency #123

Closed
wants to merge 1 commit into from
Closed

Remove osc-min dependency #123

wants to merge 1 commit into from

Conversation

MylesBorins
Copy link
Owner

@MylesBorins MylesBorins commented Aug 9, 2024

Related to #115

Remove the osc-min dependency and implement custom OSC encoding/decoding functions.

  • Remove osc-min dependency

    • Remove osc-min from package.json.
    • Remove #decode alias from package.json.
  • Update Client.mjs

    • Import toBuffer from internal/osc.mjs.
    • Update send method to use the new toBuffer function.
  • Update Server.mjs

    • Import fromBuffer from internal/osc.mjs.
    • Update message event handler to use the new fromBuffer function.
  • Add internal/osc.mjs

    • Implement toBuffer function to encode OSC messages.
    • Implement fromBuffer function to decode OSC messages.
  • Update rollup.config.mjs

    • Remove osc-min and #decode from the external array in the walkLib function.
    • Remove osc-min and #decode from the external array in the walkTest function.
  • Add tests for new implementation

    • Add test/test-osc.mjs with tests for toBuffer and fromBuffer functions.
  • Remove old files

    • Delete lib/internal/decode.mjs.
    • Delete test/test-decode.mjs.

For more details, open the Copilot Workspace session.

Related to #115

Remove the `osc-min` dependency and implement custom OSC encoding/decoding functions.

* **Remove `osc-min` dependency**
  - Remove `osc-min` from `package.json`.
  - Remove `#decode` alias from `package.json`.

* **Update `Client.mjs`**
  - Import `toBuffer` from `internal/osc.mjs`.
  - Update `send` method to use the new `toBuffer` function.

* **Update `Server.mjs`**
  - Import `fromBuffer` from `internal/osc.mjs`.
  - Update `message` event handler to use the new `fromBuffer` function.

* **Add `internal/osc.mjs`**
  - Implement `toBuffer` function to encode OSC messages.
  - Implement `fromBuffer` function to decode OSC messages.

* **Update `rollup.config.mjs`**
  - Remove `osc-min` and `#decode` from the `external` array in the `walkLib` function.
  - Remove `osc-min` and `#decode` from the `external` array in the `walkTest` function.

* **Add tests for new implementation**
  - Add `test/test-osc.mjs` with tests for `toBuffer` and `fromBuffer` functions.

* **Remove old files**
  - Delete `lib/internal/decode.mjs`.
  - Delete `test/test-decode.mjs`.

---

For more details, open the [Copilot Workspace session](https://copilot-workspace.githubnext.com/MylesBorins/node-osc/issues/115?shareId=XXXX-XXXX-XXXX-XXXX).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant