NorthwoodsSoftware / GoJS

JavaScript diagramming library for interactive flowcharts, org charts, design tools, planning tools, visual languages.
http://gojs.net
Other
7.8k stars 2.86k forks source link

v2.3.16 has console.log statement happening #206

Closed jyounce-aim closed 7 months ago

jyounce-aim commented 7 months ago

After upgrading from v2.3.15 to v2.3.16 this console.log statement now shows up in the chrome console.

gojs-v2 3 16-console log-showing-up
simonsarris commented 7 months ago

We modified the package.json file to specify using the go-debug.mjs file in development environments, via:

in package.json

  "exports": {
    "import": {
      "types": "./release/go-module.d.ts",
      "development": "./release/go-debug.mjs",
      "production": "./release/go.mjs",
      "default": "./release/go.mjs"
    },
    "require": {
      "types": "./release/go.d.ts",
      "development": "./release/go-debug.js",
      "production": "./release/go.js",
      "default": "./release/go.js"
    }
  },

This seems to have defaulted you to the go-debug version. This console warning is something that's always been a problem, but you are only now seeing it. Some property is being set outside of a transaction, and must either be inside of one (that either skips the undo manager, if applicable, or does not)