Releases: overextended/oxmysql
v1.8.3
v1.8.2
Features
- mysql2 patch-package (Linden)
Bug Fixes
- transactions: resolve error when executing transaction (Linden)
Code Refactoring
- enable JS exports for more recent artifacts (Linden)
- minor cleanup and formatting (Linden)
- execute: await connection to send query (Linden)
Chores
- update dependencies (Linden)
v1.8.1
v1.8.0
Bug Fixes
- lib: incorrect safeArgs for Sync.transaction (callback) (Linden)
Code Refactoring
- pool: permit extra user and password aliases (Linden)
Chores
Full Changelog: v1.7.1...v1.8.0
node-mysql2 - 2.3.3 ( 5/11/2021 )
-
fix ColumnDefinition.db is broken when encoding is not utf-8
-
typeCast: Fix field.length to be number
-
initial support for coverage reporting in CI
-
fix performance regression for results with large (300+) number of columns
-
fork: merged #1441 (do not set 'CONNECT_WITH_DB' flag when database is not set)
v1.7.1
Features
- lua: update http link and version checking (Linden)
Bug Fixes
- parser: Check if query is string type not undefined (Dunak)
- pool: Remove default database value from config (Dunak)
Code Refactoring
- versioncheck: remove module and perform check with Lua (Linden)
- lua: remove file check and move to subdirectory (Linden)
- webpack: update patterns and do not minify (Linden)
Chores
v1.7.0
Prepared statements
These were the default function utilised in the initial release, however several incompatibilities and the general trend of using string concatenation lead to many issues. This new export utilises prepared statements for specific purposes and is not generally recommended if you're uncertain about return values.
If you would like to utilise them, refer to these forks of esx_status and es_extended for updated save functions.
Documentation updates will be coming, so if you're not sure how to use them just don't.
Features
Code Refactoring
- lib: Update formatting for improved LDoc usage (Linden)
- prepare: Rename
prepared
export toprepare
(Linden)
Chores
- Version bump (Linden)
Commits
- 1d0a5bc: Update issue templates (Linden)
v1.6.3
v1.6.2
Regarding the regex fix
Attempting to allow nil to pass to parameters threw errors in edge cases where JSON was being included in a query (rather than a parameter), so it would assume it contained a whole bunch of named placeholders.
This only occured in v1.6.1 and fortunately threw errors rather than attempting to resolve each value to NULL
.
Only known instance of this is in ESX Legacy due to the bulk SavePlayers.
Bug Fixes
- nil parameters with named placeholders #51 (darksaid98)
- regex: Prevent converting JSON in queries into placeholders (Linden)
- parser: Only assign null values if placeholders were found (Linden)
Styles
- rename paramName variable #51 (darksaid98)
Chores
- Update version and dependencies (Linden)
v1.6.1
v1.6.0
Features
Bug Fixes
- manifest: Disable server_only (Linden)
- Resolve error when parameter length does not match #47 (Linden)
- Assign object entries to array #47 (Linden)
- Display correct query execution time #47 (Linden)
- Return boolean for TINYINT #47 (Linden)
- parser: Allow queries with multiple placeholders and no parameters #47 (Linden)
- lib: Allow transactions to utilise safeArgs function (Linden)
- config: Reset colour after version check message (Linden)
Chores
- Update comments for function return values (Linden)
- Version bump dependencies #47 (Linden)
- Point mysql2 dependency to fork #47 (Linden)
- Version bump (Linden)