Script Kit 1.59.1 - May 2023 Release #1256
johnlindquist
announced in
Announcements
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Script Kit 1.59.1 - May 2023 Release
Sunsetting Features
We're "sunsetting"/not supporting a few features going forward.
await npm()
. Useawait import()
or regularimport
statements instead.Script Kit now recommends using standard import methods. When you attempt to run a script and an import fails, Script Kit will catch the error and prompt you to install it. This removes the need for
await npm()
. This is especially useful for people using TypeScript as you don't need to worry about typingnpm
anymore.await db()
. We now recommendkeyv
: https://www.npmjs.com/package/keyvkeyv
is a much better solution for storing/retrieving data and achieves all of the future features we had planned fordb
.We'll do our best to update older demos/tutorials that use these methods as we're able.
Previews Everywhere
Every prompt type (
term
,drop
,fields
, etc) now supports thepreview
key. Pass in HTML to display it to the right side of your prompt. This is great for instructions and guiding the user through each script:term.write()
When a
term
prompt is open, you can issue terminal commands from shortcuts, etc by usingterm.write(myCommand)
Kenv Improvements:
"New Kenv" prompt for GitHub repo:
When creating a new Kenv, it will guide you through the process of linking the Kenv to a remote GitHub repo:
With a script selected, take Kenv actions
Press "right" (or
cmd+k
) with a script selected to reveal many "Kenv" actions:Push/Pull From Remote Kenv
From a script (or a "Manage Kenv"), you can now push/pull changes as it swaps you over to a terminal to take action:
"Trusted" Kenvs
Thanks to Script Kit + AI integrations, we've had a large influx of "non-developer" users. This necessitated more warnings/protections around sharing scripts.
Some scripts have features that run scripts automatically: Shortcuts, schedule, background, etc. These kenvs now need to be "Trusted" to enable these features to add an extra layer of protection against bad actors. PLEASE only use scripts from people you absolutely trust.
You can "trust" a kenv during new/clone setup, or later from the Kit tab->Manage Kenv menu. You can also "untrust" a kenv from the same menu.
"Trigger" flag
If a script is run by "schedule", "shortcut", etc, you can now access what triggered it by using
This will allow you customize the behavior based on whether you invoked it manually or automatically
Windows Fixes
Handled edge-cases around
Thanks to all the Windows bug reports and testers on Discord. Please keep them coming ❤️
Node 18.15.0
We're now on node 18.15.0. View the CHANGELOG: https://github.com/nodejs/node/blob/main/doc/changelogs/CHANGELOG_V18.md#18.15.0
Happy Scripting - John Lindquist
Beta Was this translation helpful? Give feedback.
All reactions