Skip to content

feat!: upgrade node and rewrite approach#81

Merged
dhensby merged 8 commits intotediousjs:masterfrom
dhensby:pulls/v2
Jun 8, 2025
Merged

feat!: upgrade node and rewrite approach#81
dhensby merged 8 commits intotediousjs:masterfrom
dhensby:pulls/v2

Conversation

@dhensby
Copy link
Copy Markdown
Collaborator

@dhensby dhensby commented Jun 7, 2025

This is a bit of a rethink of the approach to the interface exposed by this library.

It now parses the connection string and returns a ReadonlyMap, properties can be accessed using get() and has() and it is for the consumer to dictate the type coercion when fetching the value, allowing for more generic and declarative access to props.

Also included is a way to get the original connection string value back using toString() and also to create an arbitrary schema with toSchema().

Todo:

  • Update docs
  • Refactor some existing code to simplify where needed
  • Update exports
  • Update tests

dhensby added 3 commits June 7, 2025 08:01
BREAKING CHANGE: Drop support for non-LTS Node.js versions and upgrade
the typescript version to support the newer JS features.
@dhensby dhensby marked this pull request as ready for review June 8, 2025 11:19
@dhensby dhensby force-pushed the pulls/v2 branch 6 times, most recently from 7b4670f to 727240a Compare June 8, 2025 11:34
dhensby added 3 commits June 8, 2025 12:40
BREAKING CHANGE: Replace `connectionStringParser()` with `parse()` method. Rename
`buildConnectionString()` to `build()`. Remove `parseSqlConnectionString` and
replace with a way to transform parsed connection strings into a specific
object schema (see ConnectionString.toSchema()`).
@dhensby dhensby merged commit 7141807 into tediousjs:master Jun 8, 2025
7 checks passed
@dhensby dhensby deleted the pulls/v2 branch June 8, 2025 12:31
@github-actions
Copy link
Copy Markdown

github-actions bot commented Jun 8, 2025

🎉 This PR is included in version 1.0.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant