firestorm-db
Advanced tools
Changelog
[1.13.0] - 2024-05-09
Collection.collectionName
as a readonly property for TypeScript usage.array-splice
edit fields.array-contains-none
option for array fields.JSONDatabase
PHP class to reduce repetitive code.original
option for readRaw
to not insert ID fields, for easier non-relational collection usage.TypeError
s instead of regular Error
s.firestorm.table(name)
method, since firestorm.collection(name)
does exactly the same thing.editField
and editFieldBulk
now return confirmations like all other write methods.editField
and editFieldBulk
now reject with a descriptive error message on failure rather than silently failing.Collection.searchKeys
and Collection.values
not returning proper Error
objects sometimes.files.upload
not allowing the form-data
package's typing of FormData
in TypeScript.Collection
class being exported in TypeScript despite the actual class being private.array-splice
edit fields being incorrectly typed as array-slice
.Collection.remove
rejecting numeric keys, despite Collection.removeBulk
not doing so.editField
and editFieldBulk
validation issues.Changelog
[1.12.0] - 2024-02-22
Collection.values
method, which gets all distinct non-null values for a given key across a collection.{@link }
properties.AllCriteria
to AnyCriteria
to be more accurate.NoMethods<T>
type with a more generalized RemoveMethods<T>
type.Writable<T>
with more specific Settable<T>
and Addable<T>
types for set and add operations respectively.Collection.select
now picks the correct return parameters directly instead of returning a partial object.Collection.editField
and Collection.editFieldBulk
now return confirmations like the other write methods.files.upload
and files.delete
extract the Axios request and return WriteConfirmation
s like all other methods.Changelog
[1.11.1] - 2024-02-12
Collection.select
return type.Changelog
[1.11.0] - 2023-12-17
Collection.read_raw
and Collection.write_raw
methods in favor of their camelCased counterparts.Raw<T>
type in favor of Record<K, V>
.Changelog
[1.10.3] - 2023-11-01
Changelog
[1.10.2] - 2023-07-21
crypto
module as it is now deprecated and a built-in node package