Vidyano Documentation
HomepageDemo
  • Vidyano Documentation
  • Vidyano v6 (.NET 8.0 based)
    • Getting started
    • Documentation
      • Courier Feature
      • Managing User Secrets
      • Vidyano.Core
      • Icons
      • Reports
      • Grids
        • Grouping
      • Instant Search
      • Verbose Logs
        • Storage Provider
      • SourceGenerators
    • Migrating from v5.x
      • Migrating an existing Vidyano v5 project
      • Migration scripts for v5 Repository database
  • Release Notes
    • Client
      • 3.0
      • 2.0.0
    • Service
      • 6.0
      • Previous
        • 5.45.0+26864bd
        • 5.44.0+6e65421
        • 5.40.2+2a48896
        • 5.39.1+f04e696
        • 5.38.3+a697611
        • 5.37.1+3fd7ebea
        • 5.36.0+5338103
        • 5.35.5+2316022
        • 5.34.3+d278982
        • 5.33.1+12ad63a
        • 5.32.1+0c41761
        • 5.31.2+c8aabb2
        • 5.30.0+530afaf
        • 5.29.3+30608c3
        • 5.28.2+bc49431
        • 5.27.0+6b9495e
        • 5.26.2+bccf416
        • 5.25.3+8224b3b
        • 5.24.0+a20f7c
        • 5.23.0+9b8b99
        • 5.22.1+557c11
        • 5.21.1+923828
        • 5.20.0+95f4d1
        • 5.19.0+0964f9
        • 5.18.0+de3495
        • 5.17.0+aaa255
        • 5.16.0+aae2a8
        • 5.15.2+5ed89a
        • 5.14.1+ec0dbd
        • 5.13.1+c8fdb1
        • 5.12.0+66cbb5
        • 5.11.1+d7647c
        • 5.10.2+a3acd1
        • 5.9.0+68a51e
        • 5.8.1+67bcab
        • 5.8.0+aab7d8
        • 5.7.1+554316
        • 5.6.4+151e2e
        • 5.1.60401.4035
  • Legacy v5.x
    • Installation (Legacy)
    • Tutorial 1: Your first application (Legacy)
    • Computed attributes
    • Actions
      • Labels
      • Actions classes
    • Security
      • Architecture
      • Allow user registration
      • Forgot password
      • Best Practices
      • Azure AD SAML based Sign-on
      • SCIM 2.0 Service Provider
    • Overriding Vidyano Settings
Powered by GitBook
On this page
  • Breaking Changes
  • Removed shim libraries and thereby out of the box support for Internet Explorer
  • Upgraded Typescript to version 3
  • Deprecated LINQ for JavaScript and removed all references from base library
  • What's New
  • Tags
  • is-ie attribute on vi-app

Was this helpful?

Export as PDF
  1. Release Notes
  2. Client

2.0.0

Breaking Changes

Removed shim libraries and thereby out of the box support for Internet Explorer

This version drops out of the box support for Internet Explorer. This means a lot of the shim libraries have been removed in favor of adding the following code to your index.html:

<script src="https://cdn.polyfill.io/v2/polyfill.min.js?features=es6"></script>

Note that this will also be the last major version of the Vidyano web client that will support Internet Explorer at all.

Upgraded Typescript to version 3

This update together with the removal of the shim libraries (see below) will require you to add a lib section to the tsconfig.json file:

tsconfig.json
{
  "compilerOptions": {
    "lib": [
      "dom",
      "es2015"
    ],
    ...

Deprecated LINQ for JavaScript and removed all references from base library

The most major breaking change is the deprecation of the linq.js base library.

The bad news

  • all code using LINQ for JavaScript will write a deprecation warning to the console. The next major version of the client will no longer include the library by default.

The good news

  • we added replacements for the most used functions directly on the native JavaScript Array prototype.

  • you can easily include the library if you choose not to migrate your code. Simply add the following line of code to the ```<head>``` element in your index.html file:

<script src="web2/Libs/linqjs/linq.min.js"></script>
  • adding this code below the Vidyano import will also get rid of the deprecation warning in version 2.

Migrating away from linq.js

Enumerable.from

Can be omitted in most cases as the argument will most likely be an array already. In case the argument is for example a DOM NodeList, you can use the native Array.from() function instead:

// Array.from for DOM NodeList
Array.from(this.querySelectorAll(".item")).forEach(item => ...

Array extensions

// distinct
arr.distinct<T, U>( selector?: (element: T) => T | U): T[];

// groupBy
arr.groupBy<T>(selector: (element: T) => string): KeyValuePair<string, T[]>[];
arr.groupBy<T>(selector: (element: T) => number): KeyValuePair<number, T[]>[];

// orderBy
arr.orderBy<T>(selector: (element: T) => number | string): T[];
arr.orderBy<T>(property: string): T[];

// orderByDescending
arr.orderByDescending<T>(selector: (element: T) => number): T[];
arr.orderByDescending<T>(property: string): T[];

// min
arr.min<T>(selector: (element: T) => number): number;

// max
arr.max<T>(selector: (element: T) => number): number;

// sum
arr.sum<T>(selector: (element: T) => number): number;

Enumerable.SelectMany

SelectMany can be easily written with native JavaScript:

// E.g. select all detailLines from lines
[].concat(...this.lines.map(d => d.detailLines))

What's New

Tags

You can now add the inputtype=tags typehint to a MultiString attribute to display the strings as tags.

is-ie attribute on vi-app

This attribute is now added automatically to the vi-app element so the child elements can more easily add custom styles via :host-context specifically for Internet Explorer.

Previous3.0NextService

Last updated 6 years ago

Was this helpful?