- CoffeeScript 2
- async/await
- auto resolving promises
- this works: foo = await fooPromise
- auto-completion class names
- whereami line got from (new Error).stack
- ES6 functions and classes inspect
- cleaner erorr stacks without things from inside of pry.js
- Added Ctrl-R reverse search for terminal history
-
Added the ability to use Promises in a synchronous manner.
If bluebird is available you can use
yield
like so:[0] pryjs> res = yield functionThatReturnsAPromise()
- New variable given to you with the results of the last statement.
- No longer executing input multiple times.
- Show errors as they happen, not just when asked.
- Allow typing multiple lines of javascript in the prompt.
- Add typeahead/autocomplete when writing up commands.
- Add
ctrl+v
for multiline instead of guessing.
- Add a new
kill
command to kill the entire process instead of just this prompt. - Add a new
wtf
command to show you the last caught error. - Allow you to type CoffeeScript in the prompt.
- Add a new
help
command to list all the available commands. - Add new
play
command that can play lines via their absolute line numbers. - Change the pry statement to a much prettier
eval(pry.it)
.
- When nothing is returned it gives you back the prompt.
- Fix array slice bug when trying to view lines before 0.
- Allow version to be retrieved from the prompt.
- Fix prompt not giving back control of i/o.
- Catch exceptions in the prompt and display them instead of erroring.
- Keyboard shorts in prompt.
- History in the prompt.
- Colored output for functions and objects.