Skip to content

Releases: dsuryd/dotNetify

Nuget v2.3.1-pre

03 Jan 05:32
Compare
Choose a tag to compare
Nuget v2.3.1-pre Pre-release
Pre-release
  • fixed issue #68: exception middleware broke in the last release.
  • fixed middleware call type value for Update_VM calls.

Nuget v2.3.0-pre

08 Dec 02:22
Compare
Choose a tag to compare
Nuget v2.3.0-pre Pre-release
Pre-release

This release provides the following updates:

  • new APIs to support reactive programming.
  • new capability to create dynamic, reactive properties (issue #53).
  • new capability to register dynamic view model types.
  • view models are no longer required to inherit from BaseVM (issue #51).
  • fix the race condition between PushUpdates and Changed API calls.

Breaking changes:

  • the Observable class is renamed to ObservableObject to avoid name clash with System.Reactive.Linq.
  • the Ignore attribute is moved outside BaseVM.

Note for ASP.NET Framework users:
The existing DotNetify package is deprecated, and is replaced with DotNetify.SignalR.Owin. This new package depends on DotNetify.Core which targets .NET Standard 2.0, which means that your ASP.NET project must target at least .NET Framework 4.6.1.

NPM v2.0.8-beta

09 Nov 18:59
f7032a6
Compare
Choose a tag to compare
NPM v2.0.8-beta Pre-release
Pre-release

This release addresses the following issues found in dotnetify-react.router during development of React SPA template:

  • Fixed RouteTarget component to use local React reference.
  • Fixed RouteLink component to pass the anchor click event.
  • Made execution of routing asynchronous to allow click event to complete first.
  • Added new router API $routeTo to allow UI script to route programmatically.

NPM v2.0.7-beta + Nuget v2.2.2-pre

22 Oct 05:30
Compare
Choose a tag to compare
Pre-release

This release provides the integration with the latest SignalR for ASP.NET Core 2.0 (currently alpha2).

Upgrade from Previous Version

Both the client and server must be upgraded. Your ASP.NET Core Web project must target .NET Core 2.0. In Startup.cs, update the call UseSignalR() to:

UseSignalR(route => route.MapDotNetifyHub());

The latest SignalR for .NET Core is not compatible with SignalR for .NET Framework. While dotNetify client-side library can be used for both, make sure the client matches the server it connects with. The .NET Core library is assumed by default. To switch to the other library, add this to the entry point:

import signalR from 'dotnetify/dist/signalR-netfx';  
dotnetify.hubLib = signalR;

If you use Webpack with babel loader, the loader will need exclude: /node_modules/ to avoid bundling error.

Transport Fallback

SignalR for .NET Core no longer provides transport fallback, i.e. falling back to SSE or HTTP long polling if WebSocket is not supported. However, this feature is now being fulfilled by dotNetify. By default, dotNetify will fall back to long polling when WebSocket fails. The fallback order and type can be configured as below:

dotnetify.hubOptions = { transport: ["webSockets", "serverSentEvent", "longPolling"] };

Note that SSE has been observed in some environments to exhibit long delay during the initial connection. The exact cause is still unknown.

Connection State Management

You can receive notification when the connection state changed by providing a handler function:

dotnetify.connectionStateHandler = (state) => { /* handle state changed event */};

The state's possible values are: "connecting", "connected", "reconnecting", "disconnected" and "terminated".

If the connection gets disconnected, as part of its resiliency feature, dotNetify will automatically attempt to reconnect indefinitely, with the delay between attempts of 2 seconds, 5 seconds, and then every 10 seconds afterwards. These can be configured as below:

dotnetify.hub.init();
dotnetify.hub.reconnectDelay = [5, 30];
dotnetify.hub.reconnectRetry = 10;

The above configuration indicates that the reconnect attempt is limited to 10 times after every disconnected event, with initial delay of 5 seconds and then every 30 seconds afterwards. When the retry attempt is exhausted, the "terminated" state is triggered.

NPM v2.0.6-beta

23 Sep 17:43
Compare
Choose a tag to compare
NPM v2.0.6-beta Pre-release
Pre-release

This release's major aim is to support React Native with the following update:

  • include a custom version of SignalR JS client based on v.2.2.2 that has no hard dependencies to jQuery and window variable.
  • remove hard dependencies to full jQuery, window variable and React DOM from dotNetify core module; no more need to include jQuery plugin in the webpack configuration.
  • include jQuery shim that has dependency only to jQuery-deferred npm library.
  • add new API dotnetify.connectionStateHandler to provide connection state changed events.
  • add new API dotnetify.hubServerUrl to specify server URL.

Other misc. updates:

  • decouple signalR hub code to a separate module to lay the groundwork for supporting the new version of SignalR client for .NET Core.
  • include Typescript definition files ( issue #46 ).

Nuget v.1.2.0 (ASP.NET 4.5) / v.2.2.1 (ASP.NET Core)

28 Aug 15:16
Compare
Choose a tag to compare

v2.2.1-pre:

  • Unbundled ASP.NET 4.5 library.
  • Fixed runtime error on ASP.NET Core web project targetting .NET Framework.

v.1.2.0:

  • ASP.NET 4.5 library that has parity with v2.2.1-pre.

NPM v2.0.5-beta + Nuget v2.2.0-pre

17 Aug 05:30
Compare
Choose a tag to compare
Pre-release

v2.0.5-beta npm

  • fixed issue #28: subsequent routing failing to trigger when having the same template but different parameter.
  • fixed issue #34: IE polyfill for dispatching event in routing plugin.
  • modified the connect API to allow configuring headers for things such as JWT authentication.
  • added capability to handle server-side exception.
  • added dotNetify.hubPath to configure signalR base path.
  • updated signalR client to v2.2.2.

v2.2.0-pre nuget

  • nugets targetting .NET Standard 1.6 and .NET 4.6.2.
  • fixed issue #30: provide configurable VM controller cache expiration.
  • added basic dependency injection in the library targetting .NET 4.6.2.
  • added middleware and view model filter pipelines (issue #29).
  • added JWT authentication middleware.
  • added authorize filter.

Version 2.0-beta

08 Mar 07:19
Compare
Choose a tag to compare
Version 2.0-beta Pre-release
Pre-release

Beta for ReactJS integration.

Version 1.1.2

11 Feb 17:35
Compare
Choose a tag to compare
  • Fixed bug related to mobile offline support.

Version 1.1.0 (ASP.NET 4.5) / Version 2.0.0-pre (ASP.NET Core)

22 Jan 06:45
Compare
Choose a tag to compare

v1.1.0

  • added mobile hybrid app support.
  • various bug fixes and enhancements.

v.2.0.0-pre

  • ported to ASP.NET Core.
  • added webpack support.