Releases: derbyjs/derby
Releases · derbyjs/derby
v4.2.3
- Merge pull request #647 from derbyjs/fix-app-options-type 4705b33
- Comment AppOptions attributes 5e73279
- Update AppOptions to include script* attributes referenced by AppForServer 3f6b714
- Merge pull request #645 from derbyjs/convert-browser-tests bcdbeac
- Test matric to include next LTS v22 5d2f6c1
- Use const/let over var 2dd2e0c
- Fix window ref 1cc37af
- Revert "Change requires to imports" 6d5b650
- Update node versions test matrix 3ad3105
- Change requires to imports 3e983b7
- Use window from runner 512fdca
- Remove test use of this; use const and let over var 62531b6
- Remove comment edadda8
- Fix typo 2acfd62
- Remove unused util.js 44c93c8
- Convertforms test to use jsdom 9d2c2b8
- Update eslint config to allow es6 (Promise) f1041fc
- Skip custom markup on-destroy test; unknown why it does not call onDestroy w jsdom test d453886
- Fix tests; ensure getFragment called torender page b011eea
- Fix test - call getFragment to render cec50ac
- Fix component tests to use harness.renderDom 7aaa5ad
- Add next tick wait before checking for removed properties 7cd3c42
- Fix call of bound function 107544e
- Merge branch 'master' of github.com:derbyjs/derby into convert-browser-tests c06df7c
- Merge pull request #646 from derbyjs/convert-eventmodel 59db1ad
- Change component.browser tests to use test harness app dddcef2
- Merge pull request #644 from derbyjs/doc-as-array-as-object dff7070
- Fix markup in as-object doc exmaple c0a9c30
- Wordsmith suggestions for as-object 8d0c9f8
- Wordsmith suggestion for a-array e66203e
- Oops, not a TS file yet; revert to require 51753c7
- Change EventModel requrie to import c17f606
- Ensure test uses same fragment instance 87b6acb
- Fix EventModel ctor typo 04338c3
- Eventmodel conversion to typescript 0fd8ae1
- Change test to use domTestRunner b293fc7
- Renemd (moved) test files 99aee20
- Fix heading to use same casing as attribute 2af8d70
- Style fix for inline code block in h3 headings; made code bigger to better match rest of heading ef6c151
- Add documentation for as-array and as-object attributes 089a303
- Merge pull request #643 from derbyjs/fix-api-doc-site c92fd6c
- Force GH acitons 5459689
- Fix jekyll config to keep generated api docs; remove doscs/api from gitignore 27ed7f9
What's Changed
- Fix doc site api-doc generation by @craigbeck in #643
- Document as-array and as-object by @craigbeck in #644
- Eventmodel conversion to typescript by @craigbeck in #646
- Convert browser tests by @craigbeck in #645
- Update AppOptions to include script* attributes by @craigbeck in #647
Full Changelog: v4.2.2...v4.2.3
v4.2.2
What's Changed
- 74a6dce - Fix TS typings for
component.create(), broken by v4.2.1- Resolves error TS2425: Class 'Component' defines instance member property 'create', but extended class 'MyComponent' defines it as instance member function.
Full Changelog: v4.2.1...v4.2.2
v4.2.1
What's Changed
- Troubleshooting improvements for component errors by @ericyhwang in #642
- In development, warn if a component's
init()is improperly an async or Promise-returning function - If registering a singleton component that extends Component, eagerly throw an error at component registration time, instead of at render-time throwing an obscure "Uncaught TypeError: Cannot read properties of undefined (reading 'controller')"
- In development, warn if a component's
Documentation updates
These were already deployed to https://derbyjs.github.io/derby/ upon PR merge.
- [docs] Improvements to Racer model docs by @ericyhwang in #641
- Troubleshooting guides for various errors by @ericyhwang in #642
- Add Typedoc generated API docs by @craigbeck in #638
Full Changelog: v4.2.0...v4.2.1
v4.2.0
What's Changed
- Add new App event "page", emitted when a new Page instance is created by @ericyhwang in #640
- This can be used to customize Page instances after creation.
- The event is emitted both during server-side rendering, as well as during client-side initialization and page changes.
Doc updates
These were automatically deployed to the doc site upon merge and aren't part of the published package.
- [docs] Fixes and style improvements for GitHub Pages doc site by @ericyhwang in #637
- introduce a troubleshooting guide for Derby by @aconrad in #541
- Integrate troubleshooting guide into doc site nav by @craigbeck in #639
Full Changelog: v4.1.3...v4.2.0
v4.1.3
- Merge pull request #636 from akgula/fix/componentHarness ce75f1e
- Add source as optional param to stub 1c27ca9
What's Changed
New Contributors
Full Changelog: v4.1.2...v4.1.3
v4.1.2
v4.1.1
v4.1.0
What's Changed
- Add package.json exports for
derby/dist/{components,parsing,templates,test-utils}by @ericyhwang in #632- This enables usage of those files in TypeScript with the default classic
moduleResolution. - If using "node16" or "nodenext"
moduleResolutionin your tsconfig.json, then prefer the paths withoutdist, such as'derby/test-utils'.
- This enables usage of those files in TypeScript with the default classic
Full Changelog: v4.0.0...v4.1.0
v4.0.0
TypeScript *.d.ts type definition files are now bundled with both Derby and Racer!
derby@4 uses racer@2. If you have a separate dependency on Racer, be sure to update it.
Breaking changes
- Declaring a singleton component via
ComponentClass.prototype.singleton = true;is no longer supported.- Instead, use a static property
class ComponentClass { static singleton = true; } - Or without class syntax,
ComponentClass.singleton = true;
- Instead, use a static property
- Internal class hierarchies have been changed, with new client-specific and server-specific classes inheriting from base classes.
- This generally won't affect you, unless you had custom type definitions written for Derby's classes.
- In most cases, the base class type is appropriate unless you are using specific client or server side methods
Derbybase,DerbyForClientandDerbyForServersubclassesPagebase,PageForClientandPageForServersubclassesAppbase,AppForClientandAppForServersubclasses
If you are upgrading straight from the pure-JS derby@2, also see the release notes for derby@3 here:
https://github.com/derbyjs/derby/releases/tag/v3.0.0
What's Changed
- Racer 2 by @craigbeck in #629
Full Changelog: v3.0.3...v4.0.0
v4.0.0-beta.18
- Publish classes for client code (not type only) -- used in some testing cases 1ee854d