Skip to content

Commit 70d5968

Browse files
committed
docs: update migration guide to v1 for removal of connection
1 parent 0600bee commit 70d5968

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

docs/docs/guides/8-migration-v1.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
# Migration to v1
22

3+
## Removed deprecations
4+
5+
### `Connection` vs `DataSource`
6+
7+
`DataSource` replaced `Connection` in v0.3 to provide a better meaning to the abstract concept represented by this class. For backwards compatibility, `Connection` was kept as an alias to `DataSource`, now this alias was removed. Similarly, `ConnectionOptions` is now `DataSourceOptions`.
8+
9+
In addition, the old method names of the `DataSource` class have been removed, so `Connection.connect()` is now only `DataSource.initialize()`, `Connection.close()` is `DataSource.destroy()` etc.
10+
311
## Dependencies
412

513
The lowest JavaScript version supported is now ES2023, which means Node 20 and later is supported. If you are using a platform that does not support ES2023, please upgrade.

0 commit comments

Comments
 (0)