SDK Improvements on deprecation warnings

  • 20 November 2020
  • 1 reply
  • 385 views

Hi,

Not sure in which forum to put it.

I just checked miro.d.ts for IBoardViewportCommands which I am using as single source of turth, but not all methods are listed there. Just fiddled in the console and on miro.board.viewport I get those methods listed:

miro.board.viewport.  methods

When using the methods getZoom, zoomToObject it shows deprecation warning, alltough this methods are also listed on the documentation example here https://developers.miro.com/docs/how-to-start. Would be cool to see in the console which method to use instead (eg. getZoom shows deprecated, but could mention to use getScale instead).

And a general migration section in the docu would be cool.

Markus


1 reply

Userlevel 4
Badge

Hello Markus,

 

You should use miro.d.ts as the source of truth for methods that are currently supported. All the methods in miro.d.ts are also documented in the “SDK Reference” section of our documentation:
https://developers.miro.com/docs
 

The Javascript console exposes some methods that are deprecated and/or experimental. This is a problem that we will address in a future release of the SDK.

 

Kind regards.

 

Daniela

Reply