- Bump patch version to publish latest README that includes FQL v4 deprecation notice. No functional changes included.
- Add
tags
andtraceheader
support inclient.query
#672
- disallow undefined required args #663
- Support nullable arguments for applicable FQL functions #651 and #36
- Add optional endpoint parameter as an alternative to setting scheme, domain and port individually. The new parameter will override scheme, domain and port if set. #652
- Expose Stream types #622
- Enforce a maximum value of 5000 ms for the
http2SessionIdleTime
option #642 - Add checks to
http2SessionIdleTime
so that sane defaults are used in case an invalid value is configured - Add the missing Native.ROLES type #638
- Disable ability to configure a client and the query method from returning metrics when calling query - fixing bug introduced in 4.5.3 that breaks backward compatibility. Continue supporting queryWithMetrics. #633.
- Add set-streaming feature support #589
- Upgrade dependencies to address security concerns #600
- Fix Auth0 #558
- Fix
isFaunaValue
andisFaunaRef
properties #529 - Fix stack trace capture #536
- Fix
ContainsStr
to render as string #537 - Improve
Expr
type declaration to includetoFQL()
#544 - Improve
PageHelper
#543 - Improve unauthorized error message clarity #557
- Make
signal
property ofclient.query
optional
- Improve types (errors.pargeJSON, errors.TooManyRequests,
signal
for client.query options) - Fix false positive cases for ClientClosed error
- Option to disable checking driver version (new Client({checkNewVersion: false}))
- Fix PageHelper honors size with map/filter
- Fix module issue for
Vitessedge
- Implements Client#close method, allows Infinity for
http2SessionIdleTime
parameter - Adds missed tests for FQL queries
- Fixes cross-platform global object
- Notifies about new package version and shows release notes on install
- Exposes parseJSON from utils
- Adds
NGram
to special cases for snake_case to CamelCase conversion - Adds load tests
- Automatically create Jira ticket on GitHub issue
- Fixes handling of
Let
bindings when a key's value is undefined - Fixes JSON parsing of field names containing spaces
- Updates GitHub link to .io instead of .com
- Remaps 429 HTTP error to
TooManyRequests
error type
- Improve HTTP2 session timeout handling
- Add the
FAUNADB_HTTP2_SESSION_IDLE_TIME
environment variable to specify the default HTTP2 session timeout period - Implement a fix for the lack of a
navigator
object in Cloudflare Workers
- Revert X-Query-Timeout improvement (will be introduced in a major release)
- Revert http2 session idle time (will be changed to a manual handling by a 'close' method in a major release)
- Expose API version as a Client's static property
- Fix Stream API type definition (TypeScript)
- Always pass X-Query-Timeout
- Combine timeout & queryTimeout
- Set http2 session idle time
- Omit the port value if it's falsy
- Expr to FQL logic fixes
- Fallback to HTTP1 in case old NodeJS version doesn't support it
- Add runtime env headers
- Enhance isNodeJS recognition
- Add
observer
option forclient.query
- Add NodeJS HTTP2 support
- Fix build for webpack
- Use AbortController polyfill
- Fix null in zero-argument functions for toFQL stringification
- Fix http request timeout not passed to
fetch
function - Fix stream
end
event shallowed for NodeJS - Improve Typescript definitions
- Add exp.toFQL
- Reduce web bundle size
- Adds AccessProvider() support for authenticating with external auth providers (ex. Auth0, Okta)
- Adds beta support for event streaming
- Adds new FQL functions: CreateAccessProvider(), AccessProviders(), AccessProvider(), CurrentIdentity(), HasCurrentIdentity(), CurrentToken(), and HasCurrentToken()
- Deprecates Identity() function in favor of CurrentIdentity()
- Deprecates HasIdentity() in favor of HasCurrentIdentity()
- Added an alias of the Contains function called ContainsPath, and deprecated the Contains function.
- Added the new functions ContainsField and ContainsValue functions to make it easier to explore the structure of objects and documents.
- Added the new Reverse function to reverse the order of items in an Array, Page, or Set.
- Add support for versioned
@query
values.
- Fix a bug with instanceof conditions
- Fix incorrect casing for FQL function names
- Fix Paginate/Match rendering
- Fix type mismatch for FaunaHTTPError constructor
- Rollback ESM support breaking changes
- Add client-specified query timeout
- Configure build script to output ES Module
- Fix arity messages
- Improve RequestResult types
- Add custom fetch option
- Add
headers
config onClient
- Improve arity error log information
- Fix Expr.toString type definition
- Fix FaunaHTTPError type definition
- Fix Expr.toExpr when value is a string
- Fix native schema rendering
- Fix npm package
- Add Documents
- Fix the types for
If
so thatnull
is a valid result
- Add custom headers
- Add ToDouble, ToInteger
- Add ToObject, ToArray
- Add Any, All
- Add TimeAdd, TimeSubtract, TimeDiff
- Removed
es6-promise
dependency
- Removed
client
fromRequestResult
to prevent accidental logging of secret
- Replaced
isomorphic-unfetch
withcross-fetch
- No longer requiring http/s libraries in browser environments
- Bug fix related to
require('url')
in browsers
- Add Count, Mean, Sum, Min, Max
- Add StartsWith, EndsWith, ContainsStr, ContainsStrRegex, RegexEscape
- Add MoveDatabase
- Add Now
- Add
keepAlive
option for clients in Node - Dynamic require removed (bug fix)
- Replaced
superagent
withisomorphic-unfetch
- Typescript definitions for date and time related functions
- Added support for
cursor
option withPageHelper
- Keep alive connections enabled on NodeJS environments
- Enhance SetRef toString()
- Add generic type for client.query()
- Add new types Document and Page
- Fix render order of Filter(), Map(), Foreach()
- Fix npm security warnings
- Add stdlib functions: Reduce(), Merge(), Range(), Format()
- Add stdlib time functions ToSeconds(), ToMillis(), ToMicros(), DayOfWeek(), DayOfMonth(), DayOfYear(), Month(), Hour(), Minute(), Second()
- Support new schema names: Class -> Collection; Instance -> Document Deprecate CreateClass(), Class(), and Classes() in favor of CreateCollection(), Collection(), Collections()
- Fix rendering of Let() function
- Add functions for RBAC: CreateRole(), Role(), Roles()
- Make the FaunaClient.query(..) function generic for Typescript
- Temporarily disable X-Last-Seen-Txn header due to CORS issues
- Add stdlib math functions Abs(), Asin(), Acos(), Atan(), BitAnd(), BitNot(), BitOr(), BitXor(), Ceil(), Cos(), Cosh(), Degrees(), Divide(), Exp(), Floor(), Hypot(), Ln(), Log(), Max(), Min(), Modulo(), Pow(), Radians(), Round(), Sign(), Sin(), Sinh(), Sqrt(), Tan(), Tanh(), Trunc()
- Add stdlib string functions FindStr(), FindStrRegex(), Length(), Lower(), LTrim(), Repeat(), ReplaceStr(), ReplaceStrRegex(), RTrim(), Space(), SubString(), TitleCase(), Trim(), Upper()
- Add support for backrefs in
Let()
. Requires FaunaDB 2.6.0 - Expose last seen txn time via
getLastTxnTime()
- Fix README example
- Fix min/max parameters on ngram function
- Update documentation with correct links
- Fix a bug on
Do()
function that was preventing expressions with only one statement - Fix bug on string formatter of expressions types
- Adds support for Symbol type
- Add support for the X-Last-Seen-Txn header
- Bug fix: Typescript functions that receive lambda should support lambdas created
by
Lambda()
function. - Adds
to_string
,to_number
,to_time
, andto_date
functions - Pretty print Fauna objects
- Adds
@bytes
constructor on query api
- Bug fix: functions with optional scope parameter were failing when scope was omitted.
- Adds
ngram
function - Adds
is_empty
andis_nonempty
functions - Provide a raw view of the query in the RequestResult
- Adds support for @query type (user defined functions)
- Adds support for recursive references
- Removes
get
,post
,put
,patch
anddelete
methods fromClient
class - Adds
abort
function - Adds
normalizer
argument tocasefold
function - Adds
new_id
function - Deprecated
next_id
in favor ofnew_id
- Adds
identity
andhas_identity
functions - Adds
singleton
andevents
functions - Adds
select_all
function
- Fix typescript declaration file to include default types
- Fix wrap of literal objects for lambda form of let expression
- Accept lambdas at Let function
- Fix wrap of Select's default parameter in order to allow other types rather than Object.
- Official release
- Using literal strings as Error class names to avoid problems with minified code
- Change the default cloud endpoint from
cloud.faunadb.com
todb.fauna.com
. - Adds support for key_from_secret function.
- Adds support for at function.
- Adds support for @bytes type.
- Remove count function
- Adding missing ref constructors for database, index, and class.
- Adding missing write functions: create database, create index, create key, and create class.
- Restrict query language functions arity for safety
- Change the default cloud endpoint from
rest.faunadb.com
tocloud.faunadb.com
.
- Initial Release on NPM