Skip to content

Releases: derbyjs/racer

v2.3.0

13 Sep 18:36
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v2.2.2...v2.3.0

v2.2.2

22 Jul 22:40
Compare
Choose a tag to compare

What's changed

  • Have Racer's compiler use [email protected] without "use strict;" directives, instead of latest [email protected]
    • The "use strict;" appears to cause some issues with LocalDoc in certain cases, so it's now left out again from Racer's JS files, matching v2.1.1 and before.

Full Changelog: v2.2.1...v2.2.2

v2.2.1

22 Jul 21:58
Compare
Choose a tag to compare

⚠️ This release has issues with local _-prefixed model paths, first introduced in v2.2.0. The issues are not present in v2.1.1 and before, and they should be fully resolved in [email protected].

What's Changed

  • [TS typings] Fixes for TypeScript type issues introduced in [email protected] / TS 5.5 by @ericyhwang in #313
    • Fix TS error when doing Derby app.use(plugin, options) with a strongly-typed plugin function
      • The error looked like Argument of type '(app: App, appName: string) => void' is not assignable to parameter of type '(arg0: unknown, options?: unknown) => void'.
    • Fix Derby compilation error Property 'createConnection' does not exist on type 'RootModel'.

Full Changelog: v2.2.0...v2.2.1

v2.2.0

19 Jul 21:04
Compare
Choose a tag to compare

⚠️ This release may cause TS compilation errors and some issues with local _-prefixed model paths. The issues should be resolved in [email protected].

What's Changed

  • [TS typings] Allow model.ref's to param to be a Query or Filter, to match what's accepted at runtime by @ericyhwang in #311
  • Deprecate named reactive functions (model.start with a string as the last argument); fix type for reactive fn args by @craigbeck in #312
    • To share a reactive function between multiple components, you should export it and then require/import it into each file that needs to use it.
    • This resolves a TS error when providing model.start with a reactive function that mixes unknown with stronger types. Previously, it was OK with when the function was either all unknown types or all "strong" non-unknown types. Now, a mix of unknown and stronger types is allowed.

Documentation updates

Full Changelog: v2.1.1...v2.2.0

v2.1.1

27 May 20:08
Compare
Choose a tag to compare

What's Changed

  • [TS typings] In model.add callback's error parameter, remove null from type union by @deongroenewald in #308
    • This resolves typing issues for consumer code written prior to v2.1.0 calling model.add with a callback typed as (error?: Error) => void.

New Contributors

Full Changelog: v2.1.0...v2.1.1

v2.1.0

24 May 19:36
Compare
Choose a tag to compare

🚀 Enhancement

  • Add methods getOrDefault and getOrThrow #307 (@craigbeck)
  • Add getValues method for fetching array of docs from collection #306 (@craigbeck)

🐛 Bug Fix

⚠️ Pushed to master

Authors: 1

v2.0.1

10 May 18:12
Compare
Choose a tag to compare
  • Merge pull request #304 from derbyjs/del-optional-path 9d39c4c
  • Make path optional on delPromised 2b97d80

v2.0.0...v2.0.1

v2.0.0

01 May 19:11
Compare
Choose a tag to compare

The Racer codebase is now in TypeScript, with bundled type definitions in the package!

There are only a few breaking changes, and preparation for them can be done on racer@1, prior to upgrading.

Breaking changes

  • The Model class is now an abstract class, so it should no longer be directly constructed. Use createModel() instead.
    • For example, new racer.Model() -> racer.createModel()
    • Directly trying to construct Model can result in errors like Cannot set properties of undefined (setting 'socket') from Model.createConnection
  • Drop support for Node 10-14
  • When using backend.modelMiddleware(), req objects will no longer have the deprecated getModel() function.
    • Switch to the req.model reference added by the middleware, if you haven't already.
  • The root module racer now individually exports functions and classes, instead of the entire module export being an instance of a Racer class.
    • It should be functionally equivalent, but this change is documented for completeness.
  • For the model.bundle() called used in Derby's server-side rendering, a customized default time limit can no longer be set via a static Model.BUNDLE_TIMEOUT property.
    • The only way to set a custom timeout now is passing the { bundleTimeout: timeoutInMs } option to createModel().
    • If no custom timeout is provided, a system default of 10 seconds will be applied.

What's Changed

Full Changelog: v1.1.0...v2.0.0

v2.0.0-beta.22

01 May 18:33
Compare
Choose a tag to compare
v2.0.0-beta.22 Pre-release
Pre-release
  • RacerBackend type-only export and serverRequire backend in createBackend d106e83

v2.0.0-beta.21...v2.0.0-beta.22

v2.0.0-beta.21

29 Apr 21:10
Compare
Choose a tag to compare
v2.0.0-beta.21 Pre-release
Pre-release
  • castSegments: Remove unnecessary handling of nested array and non-array cases that don't actually occur 67745a3
  • Add typings for *Immediate event listeners, mostly used by Derby 2908684

v2.0.0-beta.20...v2.0.0-beta.21