Skip to content

Conversation

@JacobLinCool
Copy link
Owner

This pull request introduces significant updates to the cloudflared package, including the addition of a new Tunnel class with custom output parsers, updates to example scripts, and enhancements to the configuration and connection handling. The most important changes are listed below:

New Features and Enhancements:

  • Added a new Tunnel class that inherits from EventEmitter and includes custom output parsers for handling tunnel connections and configurations. (src/tunnel.ts, src/handler.ts) [1] [2]
  • Introduced new example scripts (examples/events.mjs, examples/tunnel.js, examples/tunnel.mjs) showcasing the usage of the Tunnel class and its event handling capabilities. [1] [2] [3]

Documentation Updates:

  • Updated README.md to reflect the new Tunnel class and its usage, replacing the old tunnel function. [1] [2]

Configuration and Connection Handling:

  • Added ConnectionHandler and ConfigHandler classes to manage tunnel connections and configurations, emitting relevant events. (src/handler.ts)

Workflow and Version Updates:

  • Updated the GitHub Actions workflow to include new macOS and version configurations. (.github/workflows/test.yml)

Miscellaneous:

  • Updated exports in src/lib.ts to include new handlers and types. (src/lib.ts)

These changes enhance the functionality and usability of the cloudflared package, providing more robust and flexible tunnel management.

@JacobLinCool JacobLinCool requested a review from Copilot December 11, 2024 18:03
@JacobLinCool JacobLinCool self-assigned this Dec 11, 2024
@changeset-bot
Copy link

changeset-bot bot commented Dec 11, 2024

🦋 Changeset detected

Latest commit: 52570e5

The changes in this PR will be included in the next version bump.

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot reviewed 5 out of 9 changed files in this pull request and generated no suggestions.

Files not reviewed (4)
  • src/lib.ts: Evaluated as low risk
  • src/tunnel.ts: Evaluated as low risk
  • .github/workflows/test.yml: Evaluated as low risk
  • examples/tunnel.js: Evaluated as low risk

@JacobLinCool JacobLinCool deleted the tunnel-class branch December 11, 2024 18:10
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.

2 participants