Releases: DonHulieo/duff
Releases · DonHulieo/duff
v1.2.2
Features
- Added
doeskeyexist
toCLocale
.
Fixes
- Fixes error in
CBridge
related to already converted player data. - Another bug quash for the error in
CPools
when they're no players on server.
Documentaion
- Added
doeskeyexist
to README.
Full Changelog: v1.2.1...v1.2.2
v1.2.1
Docs
- Added new player money methods to
CBridge
documentation.
Features
- Implemented three new methods into
CBridge
relating to player money, allowing for checking, adding and removing money across frameworks.
Fixes
- Ensure all invalid resource states are checked in
CBridge
.
Full Changelog: v1.2.0...v1.2.1
v1.2.0
Docs
- Update
checkversion
annotations. - Update
async
toawait
.
Fixes
- Ensure export params are ordered correctly.
- BREAKING!: Call
check_version
in a new thread and remove promise return. - Ensure strings save as intended in
kdtree.tofile
. interval.destroy
works as intended.- Ensure server
CPools
methods work without players. kdtree.neighbours
works as intended.- Fix all error prints in
CKDTree
print correct function name.
Refactors
- Rename
async
toawait
& update all oldasync
references. - Change
error
in server pools functions towarn
.
Full Changelog: v1.1.8...v1.2.0
v1.1.8
Features
- Implemented
CInterval
for creating timers, and optional callbacks for retrieving and manipulating data. - Implemented
CScaleform
for calling scaleform methods as a single function (much more intuitive).
Chores
- Added new methods to docs.
Fixes
- Ensure intervals are cleanup up on both resource and invoking resource stop.
Full Changelog: v1.1.7...v1.1.8
v1.1.7
Features
- Implemented
CKDTree
for spatial searches, with a integer-key array defining parent and children. - Init
loadtexturedict
for loading texture dictionaries.
Tweaks
- Locale Context determined by file name.
Chores
- Added new methods to docs.
Full Changelog: v1.1.6...v1.1.7
v1.1.6
Features
- Implemented
hasitem
&getplayeritems
inCBridge
for both ox_inventory & qb-inventory. - Implement
switch
as a lua equivalent of switch functions in other languages. - Added
registermenu
,openmenu
&closemenu
inCBridge
for both ox_lib context menu & qb-menu.
Tweaks
- Changed error messages to reflect the correct level for
get_player_data
inCBridge
.
Chores
- Added new methods to docs.
Full Changelog: v1.1.5...v1.1.6
v1.1.5
Features
- Implemented
addboxzone
inCBridge
for both ox_target & qb-target. - Added
lerp
toCMath
. - Added
loadaudio
toCStreaming
for loading ambient, mission & script audio banks.
Fixes
- Default lua
require
now precaches modules the same as other loaders inCPackage
. - Remove confusing return val from docs & annotations for
triggercallback
.
Refactor
bench
is now more reliable for per function call performance checks, and in client usage.
Tweaks
- Support implented for multiple target options in
CBridge
's target functions.
Chores
- Added new methods to docs.
- Reworded some module descriptions to feel less copy and paste.
Full Changelog: v1.1.4...v1.1.5
v1.1.4
Features
- Created new binary search module, with methods;
search
- Searches for a value in a binary sorted array.insert
- Inserts a value into a binary sorted array.remove
- Removes a value from a binary sorted array.sort
- Sorts an array in place, usingtable.sort
.new
- Creates a new binary array object.
Fixes
mapzones.addzoneevent
now gets the correctzone_id
.- Resources return the correct state in
CBridge
.
Refactor
CPackage
now supports relative paths if the file required is local the script 'require-ing' it.
Chores
- Update docs for
bridge.createuseableitem
. - Updated error handling in
Cmath
to be the same as the rest of lib.
Full Changelog: v1.1.3...v1.1.4
v1.1.3
Features
- Implemented a reworked module of
duff.require
asCPackage
, with methods;require
- functioning like the default Lua require.import
- imports a file's environment or methods into the current environment.as
- changes the name of the last loaded module and add it as a global.
Fixes
- Removed
require
export as sparse returns would drop any trailingnils
. - Module loading all happens in
shared/import
, improving performance and fixing the above issue.
Tweaks
- Various improvements to error handling and file loading across resource.
- Change module name of
CPackages
toCPackage
to better imitate default Lua packagelib. - Moved
shared/lib
toserver/init
as there's now only server logic handled.
Chores
- Add new methods to documentation.
- Change usage of
exports.duff:require
tolib.require
.
Full Changelog: v1.1.2...v1.1.3
v1.1.2
Tweaks
- Any module using the
is_fun
method will return true for Cfx funcrefs. - Optimised the
protect
func withhelper
, passing varargs/var-returns without a table alloc each call.
Chores
- Updated descriptions and parameters for new methods.
Fixes
- Functions with spares returns not ending in nil, will return values as expected.
Full Changelog: v1.1.1...v1.1.2