Version 27: V8 Runtime Overhaul
- Converted project to V8 Runtime with Classes. Resolves #83, Resolves #56
- Converted JavaScript to Typescript and create custom typings. Resolves #64
- Added Typings from gapi.client, google-apps-script, and jsonwebtoken.
- Generated typings from Firestore Discovery URL from google-api-typings-generator.
- Created workaround for duplicate "console" definitions.
- Embraced ESLint and Prettier for code style.
- Integrated Unit Tests utilizing GSUnit.
- Added a plethora of badges and updated documentation. :)
Breaking Changes
- Query function names have been capitalized (
Select
,Where
,OrderBy
,Limit
,Offset
,Range
). - All functions return
Document
orDocument[]
types directly from Firebase. Usedocument.obj
to extract the raw object. - Undo breaking change from v23.
document.createTime
anddocument.updateTime
will remain as timestamped strings. Howeverdocument.created
,document.updated
, anddocument.read
areDate
objects.
Usage
To utilize the new version:
- Edit your Google Apps Script
- Open
Resources
>Libraries...
from the menu. - Change the version dropdown to
27
next toFirestoreApp
.
Your project runtime (V8 or Rhino) is independent of this library and they do not have to align for things to run.