Luke
e04a43a86c
refactor(web): initial svelte rewrite files
2023-03-18 19:03:35 +01:00
Linden
be8580396c
chore: patch mysql2
2023-03-07 15:44:14 +11:00
Linden
b772cd2bd2
chore: update dependencies
...
Include last changes for node package.
2023-03-07 02:13:49 +11:00
Linden
61d78dc893
chore(lib): typos
2023-01-28 16:30:35 +11:00
Linden
571691c2f5
Update README.md
2023-01-28 16:25:43 +11:00
Linden
e67557992e
chore: update dependencies & patches
...
Something will probably break.
2023-01-20 16:23:40 +11:00
Manifest Bumper
f5a9d588cb
chore: bump manifest version to v2.5.4
2022-11-17 22:01:12 +00:00
Linden
5a949b9546
fix(database): throw Error before creating promise
...
Promises, even when resolved/rejected immediately after their creation, will
destroy any useful information from a stack trace when used over
events/exports.
Since some people still use the exports rather than MySQL/lib.lua, and for
some reason don't know the correct syntax for Lua exports (i.e. using
exports.oxmysql.query instead of the CORRECT exports.oxmysql:query) it's
comically common for an "untraceable" error to get spit out.
Will this help? No. Will everyone expect me to solve their issues? Yes.
Go update your scripts to use MySQL/lib.lua and we can all get along
stress-free.
2022-11-18 08:58:43 +11:00
Manifest Bumper
30e37af313
chore: bump manifest version to v2.5.3
2022-11-14 01:42:33 +00:00
Linden
4bff0109ca
fix(config): update mysql_debug when using oxmysql_debug command
...
Polling change isn't very compatible with this; will change in the future, but
for now keep it simple.
2022-11-08 18:06:52 +11:00
Linden
bc8a874743
refactor(database): waitForConnection
2022-11-08 17:29:05 +11:00
Linden
2a5e110e29
fix(database/rawExecute): append extra null values
2022-11-08 16:57:51 +11:00
Linden
283e3194cf
fix(utils/parseExecute): incorrect parameter reassignment
2022-11-08 16:57:02 +11:00
Linden
25f8feb793
fix(execute): handle nil values in nested arrays
...
Lua tables are msgpacked with the "without_hole" setting.
Nested tables being sent with "prepare" failed to account for
nil values in tables unpacking into objects.
2022-11-08 15:17:01 +11:00
Linden
b5190f98e9
refactor(src/config): poll convars
2022-11-07 16:58:56 +11:00
Manifest Bumper
1544bc3e48
chore: bump manifest version to v2.5.2
2022-11-02 18:10:22 +00:00
Linden
70a464fb83
fix(src/config): only parse JSON for valid connection fields
...
Should have set valid keys in the first place.
Resolves #147
2022-11-03 05:08:00 +11:00
Linden
c292cb44b0
refactor(lib/define): improve Lua types
2022-10-12 18:35:01 +11:00
Manifest Bumper
299a71dd07
chore: bump manifest version to v2.5.1
2022-09-21 04:14:44 +00:00
Linden
b604a3c356
fix(src/config): parse JSON objects in connection string
...
Some connection properties take an object/array (i.e. ssl, flags).
2022-09-21 14:10:23 +10:00
Linden
8fe63bc88a
chore: update dependencies and patch
2022-09-21 13:57:55 +10:00
Manifest Bumper
706c3cf53d
chore: bump manifest version to v2.5.0
2022-08-24 10:24:39 +00:00
Linden
6b0e20aed3
chore: include .yarn.installed
...
Since the cfx yarn resource will forcibly try to run for resources even if
they don't want it or support it, I'll add this dumb file when using source code.
2022-08-24 20:22:45 +10:00
Linden
ff00cd0e82
fix(utils/parseArguments): check parameter truthiness
2022-08-24 18:41:05 +10:00
Linden
77f0d32e07
fix(update): correct semver comparison
2022-08-23 20:14:58 +10:00
Linden
f0dd9ce1a6
fix(utils): named placeholders check
...
Should always check parameters is an object (and not an array).
2022-08-13 17:12:48 +10:00
Linden
71c32f9d2f
tweak(utils): check if namedPlaceholders are enabled
...
Named placeholders were being converted regardless of config flag.
2022-08-13 16:23:47 +10:00
Linden
521aa8f03d
refactor: move connectionOptions to config
...
We'll also ensure namedPlaceholders is boolean and export the object.
2022-08-13 16:22:45 +10:00
Linden
7796c80f69
feat(config): add command to modify mysql_debug
...
Allow toggling debug prints for specific resources during runtime.
2022-08-12 19:47:30 +10:00
Linden
c92d1f3219
tweak(logger): mysql_debug array-check
...
If the convar output is an array, check if the query was invoked by
a resource in mysql_debug.
2022-08-12 18:56:22 +10:00
Linden
fca0b66fc8
tweak(config): accept a JSON array for mysql_debug
2022-08-12 18:54:32 +10:00
Linden
211d678b8d
chore(fxmanifest): update description
...
oxmysql has always worked with RedM, but habit leads to FiveM bias.
2022-08-09 03:03:57 +10:00
Manifest Bumper
8c89c70a4e
chore: bump manifest version to v2.4.0
2022-07-28 04:57:13 +00:00
Linden
8ea5aad876
ci(release): version bumper
2022-07-28 14:54:38 +10:00
Linden
613570167c
feat: provide exports for ghmattimysql
...
Rather than people weirdly renaming the resource, just provide event
handlers for ghmattimysql exports.
2022-07-28 14:48:23 +10:00
Linden
1477812b38
refactor(lib/lua): improve definitions
...
Improve return types and support callbacks.
2022-07-12 14:23:39 +10:00
Linden
1b8bf6a081
refactor(lib/lua): safeargs type checks and cb reassignment
2022-07-12 13:33:53 +10:00
Luke
3e1426a859
chore(lib): bump package version
...
for whatever reason 1.1.0 had an older version of the js file
2022-07-11 19:30:24 +02:00
Linden
31212e0198
refactor(lib/ts): improve typing and methods
2022-07-12 00:47:06 +10:00
Luke
e982bd7f89
feat(lib): readme for npm package
2022-07-10 21:49:33 +02:00
Luke
3b93df03ef
ci(release/pre-release): copy only lua lib files
2022-07-10 17:42:32 +02:00
Luke
91985638e2
feat: oxmysql exports wrapper as node package
...
https://www.npmjs.com/package/@overextended/oxmysql
2022-07-10 17:14:16 +02:00
Luke
a8e2973a86
chore: update discord link in readme
2022-07-06 18:29:47 +02:00
Linden
bdd4814f06
fix(update): return if current version is higher than release
...
The version checker will report a "major update" if fxmanifest's version
is higher than the latest release (a tag has not been pushed).
2022-06-26 22:56:25 +10:00
Linden
d80615bddc
fix(db): handle errors during callbacks
...
Handles errors that would previously disappear into the void or show as 'undefined'.
In Lua this would only occur if yielding during the query callback response.
Cross runtime error handling is suffering.
2022-06-26 04:02:50 +10:00
Linden
db0f29db42
fix(utils/parseTransaction): check for array
2022-06-26 04:01:11 +10:00
Niek
fd8ab04f1a
fix(error-events): Add invokingResource to error data ( #129 )
2022-06-26 04:01:05 +10:00
Linden
5fc56caddf
fix(db/rawQuery): handle uncaught promise
...
oxmysql is unexpectedly catching errors thrown by the Lua runtime
when an error occurs during a function reference.
This lead to an 'undefined' error being thrown, specifically when
yielding a thread during the function reference.
Not really an oxmysql bug, so this should just be a temporary workaround.
2022-06-24 14:14:37 +10:00
Niek
655ee7309f
feature: Add event to error handling ( #128 )
2022-06-22 02:32:22 +10:00
Linden
15884fbc82
refactor: error handling
...
Meant to push this before release.
Ensures errors are handled as before, regardless of using exports
or lib/mysql; for compatibility.
2022-06-18 16:32:07 +10:00