When did suspendHistory signature change?

I’ve updated Photoshop types and got an error about suspensionID, so I started checking it and found, that the signature now is:

    let suspensionID = await hostControl.suspendHistory({
        documentID: documentID,
        name: "Custom Command"
    })

It used to be:

    let suspensionID = await hostControl.suspendHistory({
        historyStateInfo: {
            name: "Custom Command",
            target: [{
                _ref: "document",
                _id: documentID,
            }],
        },
    })

And of course docs don’t mention a single word about the change

Both versions of the call work as expected, but I’m worried since which lower version the new signature stops working

I think I never used the old one. You should be good with new one.

1 Like

I tried the new method and got the following error message:

Which versions are you on? Ps, API and manifest

Ps Beta: Adobe Photoshop Version: 26.6.0 20250319.m.3014 8c3f591 x64

“manifestVersion”: 5,

“apiVersion”: 2

Hm.. Same here. Works on both latest Ps normal and Beta versions :confused:
Windows or Mac? I’m on Windows

OK, I got them both to work. Not sure what I was doing wrong the first time.

I hope Adobe gives us some warning if the older one is going to be deprecated.