You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If SQLocal is initialized in a server-side environment, it no longer throws an error. This helps simplify code structure in server-side rendered apps. Of course, queries must still be made in browser-only code paths. (Contributed by @donpark)
getDatabaseFile now uses SQLite's VACUUM command to return a snapshot of the database file, which can also reduce the returned file's size by cleaning up unused space and defragmenting the database.
Mark the package as "side-effect free" to improve tree-shaking performed by bundlers.