Releases: DonHulieo/duff
Releases · DonHulieo/duff
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
v1.1.1
Features
fxmanifest.lua
now dynamically loads shared and server scripts needed.- Added
getblips
method with optional filter function. - Implemented optional filter functions to methods in
CPools
.
Tweaks
- Methods in
CStreaming
actually returnboolean
, always.
Chores
- Updated installation instructions to remove parts where the user needs to edit the
fxmanifest.lua
. - Updated class name for duff to
CDuff
.
Full Changelog: v1.1.0...v1.1.1
v1.1.0
Features
- Implemented helper functions for number conversion in
math
. - Added
bench
method to test performance acrossduff
. - Moved
async
to it's own module, instead of housing it instreaming
. - Implemented custom error handler
protect
for better error reports across stack.
Fixes
bridge
now properly loadsqb-target
methods.
Refactor
- BREAKING CHANGE: Any modules that used OOP methods have been removed (improve performance).
- All modules have
check_type
from thedebug
module removed, replaced with in module error handling.
Chores
- Updated all annotations to functions, params, returns and class definitions.
- Updated README with better documentation for all methods.
Full Changelog: v1.0.2...v1.1.0
v1.0.2
Features
- Added
checkversion
export & method to the server environment for checking resources against GitHub repos.
Fixes
packages.paths
only gets updated with modules that have loaded successfully instead of all attempts.- Fix issue #1 where PlayerData table was initialised as a string for ESX users.
Refactor
- Changed
server.scope
to use Latent Events to improve client net performance.
Chores
- Fixed typos with old resource name (
'duf'
) with current ('duff'
). - Updated annotation for new method.
Full Changelog: v1.0.1...v1.0.2