Release: Actions URI 1.2.2

Actions URI 1.2.2 was released today.


Fixes

Two hotfixes:

  • Adjusts /note/get back to pre-1.2 code so it no longer breaks Actions for Obsidian’s “Check if note exists” action. :grimacing:
  • Fixes a bug in note creation where the default behavior regarding content insertion was not respected.

New stuff in 1.2

/note/create

  • Adds support for applying a Templates (core plugin) template or Templater (community plugin) template after note creation (#69)

/note/append

  • Adds an optional create-if-not-found parameter for avoiding errors if the note doesn’t exist yet (#67)
  • Adds an optional below-headline parameter for appending text not to the end of a file but to a section below a heading (#68)

/note/prepend

  • Adds an optional create-if-not-found parameter for avoiding errors if the note doesn’t exist yet (#67)
  • Adds an optional below-headline parameter for prepending text not to the beginning of a file but to a section below a heading (#68)

/daily-note/create

  • Adds support for applying a Templates (core plugin) template or Templater (community plugin) template after note creation (#69)

/daily-note/append

  • Adds an optional create-if-not-found parameter for avoiding errors if the note doesn’t exist yet (#67)
  • Adds an optional below-headline parameter for appending text not to the end of a file but to a section below a heading (#68)

/daily-note/prepend

  • Adds an optional create-if-not-found parameter for avoiding errors if the note doesn’t exist yet (#67)
  • Adds an optional below-headline parameter for prepending text not to the beginning of a file but to a section below a heading (#68)

Changes in 1.2

  • Incoming, malformed calls are now answered if possible: if an x-error parameter was passed in, it will be used now, instead of Actions URI just doing nothing. (#72)
  • file & folder parameter validation is now more strict where the parameter is supposed to reference an existing path, and will return a “bad request” error if the referenced file/folder couldn’t be found. Examples for clarification: file in /note/rename, folder in /folder/delete; but not file in /note/create (as here the parameter references a file yet to be created). (#72)

Removals in 1.2

  • The deprecations made in 0.18.0 are now feasting with the Gods.