Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | util: Prefix module imports with prosody namespace | Kim Alvefur | 2023-03-17 | 1 | -3/+3 |
| | |||||
* | util.mathcompat: Module to ease reuse of math.type() | Kim Alvefur | 2022-10-20 | 1 | -0/+4 |
| | | | | | Mostly to ensure it is available during tests, as util.startup is not invoked there | ||||
* | util.startup: Provide a common Lua 5.3+ math.type() for Lua 5.2 | Kim Alvefur | 2022-10-19 | 1 | -3/+1 |
| | | | | Code deduplication | ||||
* | util.serialization: Let freeze metamethod return a literal string | Kim Alvefur | 2020-09-26 | 1 | -0/+4 |
| | | | | | Enables custom serialization, such as creating a datatype that serializes into a variable reference. | ||||
* | Merge 0.11->trunk | Kim Alvefur | 2019-07-08 | 1 | -16/+11 |
|\ | |||||
| * | util.serialization: Use util.hex | Kim Alvefur | 2019-03-17 | 1 | -9/+2 |
| | | |||||
| * | util.serialization: Allow overriding table iterator | Kim Alvefur | 2019-03-17 | 1 | -1/+6 |
| | | | | | | | | | | | | | | Could be useful to eg swap it out with sorted_pairs to get a stable serialization. Default to next() wrapper to avoid metatable tricks from pairs(). | ||||
| * | util.serialization: Optimize handling of last table separator | Kim Alvefur | 2019-03-17 | 1 | -7/+5 |
| | | | | | | | | Fewer next() calls and a step towards allowing use of a different iterator. | ||||
| * | lint: Remove use of the 143 error code | Kim Alvefur | 2018-12-08 | 1 | -1/+0 |
| | | | | | | | | Does not appear to be invoked by anything | ||||
* | | util.serialization: Cache default serialization instance (fixes #1389) | Kim Alvefur | 2019-07-08 | 1 | -1/+6 |
|/ | | | | | | Most serialization uses still use the default serialize() and thus duplicate much of the setup, which negates some of the performance improvements of the rewrite. | ||||
* | util.serialization: Encode non-fatal error in way that can be restored | Kim Alvefur | 2018-10-27 | 1 | -1/+1 |
| | | | | It could previously encode to eg `{ [nil] = ... }` which doesn't get decoded | ||||
* | util.serialization: Rename non-fatal fallback handler for clarity | Kim Alvefur | 2018-10-27 | 1 | -3/+3 |
| | |||||
* | util.serialization: Disable use of unquoted table keys by default | Kim Alvefur | 2018-10-27 | 1 | -1/+3 |
| | | | | For safety against future new keywords | ||||
* | util.serialization: Add option for allowing multiple references to the same ↵ | Kim Alvefur | 2018-10-27 | 1 | -0/+10 |
| | | | | table (but not cycles) | ||||
* | util.serialization: Separate errors for multiple table references and max depth | Kim Alvefur | 2018-10-27 | 1 | -2/+5 |
| | |||||
* | util.serialization: Make maximum table depth configurable | Kim Alvefur | 2018-10-27 | 1 | -1/+2 |
| | |||||
* | util.serialization: Remove encoding of very large or very small numbers in ↵ | Kim Alvefur | 2018-10-12 | 1 | -12/+1 |
| | | | | | | | | scientific notation Also difficult to describe this option, easier to remove it. %.18g covers a very large range of numbers | ||||
* | util.serialization: Simpler metatable pre-processing | Kim Alvefur | 2018-10-12 | 1 | -14/+12 |
| | | | | It was too difficult to describe what it did. | ||||
* | util.serialization: Use '=' prefix for chunk source description | Kim Alvefur | 2018-10-11 | 1 | -1/+1 |
| | | | | Like in bd5e4485a245 | ||||
* | util.serialization: Make check of prefix for optional hex encoding stricter | Kim Alvefur | 2018-10-11 | 1 | -1/+1 |
| | |||||
* | util.serialization: Make errors fatal by default (like the previous ↵ | Kim Alvefur | 2018-10-11 | 1 | -1/+1 |
| | | | | implementation) | ||||
* | util.serialization: Stricter type check | Kim Alvefur | 2018-09-23 | 1 | -1/+1 |
| | |||||
* | util.serialization: Tighten up type checks | Kim Alvefur | 2018-07-29 | 1 | -2/+2 |
| | |||||
* | util.serialization: Rewritte for performance and flexibility | Kim Alvefur | 2018-07-10 | 1 | -58/+238 |
| | | | | ... and because rewrites are fun! | ||||
* | vairious: Add annotation when an empty environment is set [luacheck] | Kim Alvefur | 2018-02-28 | 1 | -0/+1 |
| | |||||
* | util.*: Remove use of module() function, make all module functions local and ↵ | Kim Alvefur | 2015-02-21 | 1 | -5/+9 |
| | | | | return them in a table at the end | ||||
* | util.serialization: Remove unused imports of error() and loadstring() [luacheck] | Matthew Wild | 2015-05-06 | 1 | -2/+0 |
| | |||||
* | Remove all trailing whitespace | Florian Zeitz | 2013-08-09 | 1 | -1/+1 |
| | |||||
* | Eliminate direct setfenv usage | Florian Zeitz | 2012-06-08 | 1 | -3/+3 |
| | |||||
* | util.serialization: Proper serialization of Infinity, -Infinity and NaN. | Waqas Hussain | 2010-12-13 | 1 | -2/+8 |
| | |||||
* | util.serialization: Implemented deserialize(). | Waqas Hussain | 2010-12-12 | 1 | -1/+12 |
| | |||||
* | Update copyright headers for 2010 | Matthew Wild | 2010-03-22 | 1 | -2/+2 |
| | |||||
* | util.serialization: Correctly serialize tables with 'false' as a key, fixes ↵vault/0.6.10.6.1 | Matthew Wild | 2009-11-25 | 1 | -1/+1 |
| | | | | an issue with rosters not saving (thanks mathias, Tobias) | ||||
* | util.serialization: Replaced commas with semi-colons between table fields. | Waqas Hussain | 2009-11-23 | 1 | -1/+1 |
| | |||||
* | util.serialization: Concise output for empty tables. | Waqas Hussain | 2009-11-23 | 1 | -13/+18 |
| | |||||
* | Remove version number from copyright headers | Matthew Wild | 2009-07-10 | 1 | -1/+1 |
| | |||||
* | util/serialization: Fixed serialization formatting | Waqas Hussain | 2009-05-08 | 1 | -1/+1 |
| | |||||
* | util.serialization: Write nil for non-serializable data types, and bump the ↵vault/0.4.10.4.1 | Matthew Wild | 2009-05-05 | 1 | -1/+2 |
| | | | | log level to 'error' | ||||
* | util.serialization: Log a warning when trying to serialize something we can't | Matthew Wild | 2009-05-04 | 1 | -1/+3 |
| | |||||
* | 0.3->0.4 | Matthew Wild | 2009-03-20 | 1 | -1/+1 |
| | |||||
* | Update copyright notices for 2009 | Matthew Wild | 2009-01-30 | 1 | -2/+2 |
| | |||||
* | 0.2->0.3 | Matthew Wild | 2009-01-30 | 1 | -1/+1 |
| | |||||
* | GPL->MIT! | Matthew Wild | 2009-01-30 | 1 | -13/+2 |
| | |||||
* | 0.1 -> 0.2 | Matthew Wild | 2008-12-10 | 1 | -1/+1 |
| | |||||
* | Added module util.serialization | Waqas Hussain | 2008-12-04 | 1 | -0/+81 |