GoJS version 2.2 Alpha and GoJS 2.1.55 released

GoJS 2.2 Alpha has been released, which can be accessed here: gojs.net/alpha

And installed via npm under the alpha tag:
npm i gojs@alpha

(Latest: 2.2.0-a3 released December 10, 2021)

GoJS 2.2 introduces a number of properties and methods for convenience and to improve customization. GoJS 2.2 also includes new methods for constructing objects, and enhances TypeScript typings support.

GoJS 2.2 also includes several performance enhancements when drawing large graphs, and reduced memory usage.

See the full list of changes: GoJS Change Log

GoJS 2.1.55 has also been released.

Changes for 2.1.55

In GoJS 2.2 we introduced a number of changes to reduce the need to rely on GraphObject.make. These are aimed at simplifying template authoring, while also expanding TypeScript type support.

Code with GraphObject.make such as this:

const $ = go.GraphObject.make;

const myDiagram = $(go.Diagram, "myDiagramDiv",
    "undoManager.isEnabled": true

myDiagram.nodeTemplate =
  $(go.Node, "Auto",
    new go.Binding("location", "loc", go.Point.parse).makeTwoWay(go.Point.stringify),
    $(go.Shape, "RoundedRectangle",
      { strokeWidth: 0, fill: "white" },
      new go.Binding("fill", "color")),
      { margin: 8, font: "bold 14px sans-serif", stroke: '#333' },
      new go.Binding("text", "key"))

Can now be written as:

const myDiagram = new go.Diagram("myDiagramDiv",
    "undoManager.isEnabled": true

myDiagram.nodeTemplate =
  new go.Node("Auto")
    .bind("location", "loc", go.Point.parse, go.Point.stringify)
    .add(new go.Shape("RoundedRectangle",
      { strokeWidth: 0, fill: "white" })
      .bind("fill", "color"))
    .add(new go.TextBlock(
      { margin: 8, font: "bold 14px sans-serif", stroke: '#333' })
      .bind("text", "key"));

thanks. To upgrade to 2.2.x, it means we do not have to change our code to migrate from 2.1.x right?

That is correct, unless your code is improperly depending on unsupported features.

I see, thank you walter.