2019-01-22 20:23:42 +00:00
|
|
|
# Changelog
|
|
|
|
All notable changes to this project will be documented in this file.
|
|
|
|
|
2019-09-22 20:15:28 +00:00
|
|
|
## Unreleased
|
2019-09-25 02:25:21 +00:00
|
|
|
- Added `slice` to the core library.
|
|
|
|
- The `*/slice` family of functions now can take nil as start or end to get
|
|
|
|
the same behavior as the defaults (0 and -1) for those parameters.
|
2019-09-24 18:23:18 +00:00
|
|
|
- `string/` functions that take a pattern to search for will throw an error
|
|
|
|
when receiving the empty string.
|
2019-09-22 23:00:25 +00:00
|
|
|
- Replace (start:end) style stacktrace source position information with
|
|
|
|
line, column. This should be more readable for humans. Also, range information
|
|
|
|
can be recovered by re-parsing source.
|
2019-09-22 20:15:28 +00:00
|
|
|
|
2019-09-22 00:04:59 +00:00
|
|
|
## 1.3.1 - 2019-09-21
|
2019-09-21 23:57:04 +00:00
|
|
|
- Fix some linking issues when creating executables with native dependencies.
|
|
|
|
- jpm now runs each test script in a new interpreter.
|
2019-09-20 01:26:16 +00:00
|
|
|
- Fix an issue that prevent some valid programs from compiling.
|
|
|
|
- Add `mean` to core.
|
2019-09-22 00:04:59 +00:00
|
|
|
- Abstract types that implement the `:+`, `:-`, `:*`, `:/`, `:>`, `:==`, `:<`,
|
|
|
|
`:<=`, and `:>=` methods will work with the corresponding built-in
|
|
|
|
arithmetic functions. This means built-in integer types can now be used as
|
|
|
|
normal number values in many contexts.
|
2019-09-08 20:36:21 +00:00
|
|
|
- Allow (length x) on typed arrays an other abstract types that implement
|
|
|
|
the :length method.
|
|
|
|
|
2019-09-06 00:33:08 +00:00
|
|
|
## 1.3.0 - 2019-09-05
|
2019-09-05 18:21:17 +00:00
|
|
|
- Add `get-in`, `put-in`, `update-in`, and `freeze` to core.
|
2019-09-01 16:36:44 +00:00
|
|
|
- Add `jpm run rule` and `jpm rules` to jpm to improve utility and discoverability of jpm.
|
|
|
|
- Remove `cook` module and move `path` module to https://github.com/janet-lang/path.git.
|
|
|
|
The functionality in `cook` is now bundled directly in the `jpm` script.
|
2019-08-25 02:53:45 +00:00
|
|
|
- Add `buffer/format` and `string/format` format flags `Q` and `q` to print colored and
|
2019-08-29 01:54:31 +00:00
|
|
|
non-colored single-line values, similar to `P` and `p`.
|
2019-09-01 16:36:44 +00:00
|
|
|
- Change default repl to print long sequences on one line and color stacktraces if color is enabled.
|
2019-08-24 23:06:02 +00:00
|
|
|
- Add `backmatch` pattern for PEGs.
|
2019-08-24 21:36:50 +00:00
|
|
|
- jpm detects if not in a Developer Command prompt on windows for a better error message.
|
|
|
|
- jpm install git submodules in dependencies
|
2019-08-19 05:19:51 +00:00
|
|
|
- Change default fiber stack limit to the maximum value of a 32 bit signed integer.
|
2019-08-18 20:54:43 +00:00
|
|
|
- Some bug fixes with `jpm`
|
2019-09-01 16:36:44 +00:00
|
|
|
- Fix bugs with pegs.
|
2019-08-18 20:54:43 +00:00
|
|
|
- Add `os/arch` to get ISA that janet was compiled for
|
|
|
|
- Add color to stacktraces via `(dyn :err-color)`
|
|
|
|
|
2019-08-08 23:51:24 +00:00
|
|
|
## 1.2.0 - 2019-08-08
|
2019-08-06 23:10:48 +00:00
|
|
|
- Add `take` and `drop` functions that are easier to use compared to the
|
|
|
|
existing slice functions.
|
|
|
|
- Add optional default value to `get`.
|
2019-08-04 17:18:57 +00:00
|
|
|
- Add function literal short-hand via `|` reader macro, which maps to the
|
|
|
|
`short-fn` macro.
|
|
|
|
- Add `int?` and `nat?` functions to the core.
|
2019-07-27 14:31:03 +00:00
|
|
|
- Add `(dyn :executable)` at top level to get what used to be
|
|
|
|
`(process/args 0)`.
|
2019-07-27 03:47:42 +00:00
|
|
|
- Add `:linux` to platforms returned by `(os/which)`.
|
|
|
|
- Update jpm to build standalone executables. Use `declare-executable` for this.
|
2019-07-20 21:59:11 +00:00
|
|
|
- Add `use` macro.
|
|
|
|
- Remove `process/args` in favor of `(dyn :args)`.
|
2019-07-12 12:19:29 +00:00
|
|
|
- Fix bug with Nanbox implementation allowing users to created
|
|
|
|
custom values of any type with typed array and marshal modules, which
|
|
|
|
was unsafe.
|
|
|
|
- Add `janet_wrap_number_safe` to API, for converting numbers to Janets
|
|
|
|
where the number could be any 64 bit, user provided bit pattern. Certain
|
|
|
|
NaN values (which a machine will never generate as a result of a floating
|
|
|
|
point operation) are guarded against and converted to a default NaN value.
|
|
|
|
|
2019-07-08 23:15:14 +00:00
|
|
|
## 1.1.0 - 2019-07-08
|
2019-07-05 16:00:46 +00:00
|
|
|
- Change semantics of `-l` flag to be import rather than dofile.
|
2019-07-08 23:15:14 +00:00
|
|
|
- Fix compiler regression in top level defs with destructuring.
|
|
|
|
- Add `table/clone`.
|
|
|
|
- Improve `jpm` tool with git and dependency capabilities, as well as better
|
|
|
|
module uninstalls.
|
2019-07-05 16:00:46 +00:00
|
|
|
|
2019-07-01 19:47:03 +00:00
|
|
|
## 1.0.0 - 2019-07-01
|
2019-06-25 02:02:37 +00:00
|
|
|
- Add `with` macro for resource handling.
|
|
|
|
- Add `propagate` function so we can "rethrow" signals after they are
|
|
|
|
intercepted. This makes signals even more flexible.
|
2019-06-19 23:52:41 +00:00
|
|
|
- Add `JANET_NO_DOCSTRINGS` and `JANET_NO_SOURCEMAPS` defines in janetconf.h
|
|
|
|
for shrinking binary size.
|
|
|
|
This seems to save about 50kB in most builds, so it's not usually worth it.
|
2019-06-19 02:01:14 +00:00
|
|
|
- Update module system to allow relative imports. The `:cur:` pattern
|
|
|
|
in `module/expand-path` will expand to the directory part of the current file, or
|
|
|
|
whatever the value of `(dyn :current-file)` is. The `:dir:` pattern gets
|
|
|
|
the directory part of the input path name.
|
|
|
|
- Remove `:native:` pattern in `module/paths`.
|
|
|
|
- Add `module/expand-path`
|
|
|
|
- Remove `module/*syspath*` and `module/*headerpath*` in favor of dynamic
|
|
|
|
bindings `:syspath` and `:headerpath`.
|
2019-06-18 19:41:48 +00:00
|
|
|
- Compiled PEGs can now be marshaled and unmarshaled.
|
2019-06-18 02:46:38 +00:00
|
|
|
- Change signature to `parser/state`
|
|
|
|
- Add `:until` verb to loop.
|
2019-06-08 21:22:42 +00:00
|
|
|
- Add `:p` flag to `fiber/new`.
|
|
|
|
- Add `file/{fdopen,fileno}` functions.
|
|
|
|
- Add `parser/clone` function.
|
2019-06-03 14:55:26 +00:00
|
|
|
- Add optional argument to `parser/where` to set parser byte index.
|
|
|
|
- Add optional `env` argument to `all-bindings` and `all-dynamics`.
|
2019-06-02 03:52:01 +00:00
|
|
|
- Add scratch memory C API functions for auto-released memory on next gc.
|
|
|
|
Scratch memory differs from normal GCed memory as it can also be freed normally
|
|
|
|
for better performance.
|
2019-05-30 01:57:03 +00:00
|
|
|
- Add API compatibility checking for modules. This will let native modules not load
|
|
|
|
when the host program is not of a compatible version or configuration.
|
2019-05-30 23:33:09 +00:00
|
|
|
- Change signature of `os/execute` to be much more flexible.
|
2019-05-30 01:57:03 +00:00
|
|
|
|
2019-05-29 16:19:39 +00:00
|
|
|
## 0.6.0 - 2019-05-29
|
2019-05-29 15:58:41 +00:00
|
|
|
- `file/close` returns exit code when closing file opened with `file/popen`.
|
|
|
|
- Add `os/rename`
|
2019-05-29 02:12:42 +00:00
|
|
|
- Update windows installer to include tools like `jpm`.
|
2019-05-28 17:59:12 +00:00
|
|
|
- Add `jpm` tool for building and managing projects.
|
|
|
|
- Change interface to `cook` tool.
|
2019-05-25 21:10:25 +00:00
|
|
|
- Add optional filters to `module/paths` to further refine import methods.
|
2019-05-24 21:13:35 +00:00
|
|
|
- Add keyword arguments via `&keys` in parameter list.
|
|
|
|
- Add `-k` flag for flychecking source.
|
|
|
|
- Change signature to `compile` function.
|
|
|
|
- Add `module/loaders` for custom loading functions.
|
|
|
|
- Add external unification to `match` macro.
|
|
|
|
- Add static library to main build.
|
|
|
|
- Add `janet/*headerpath*` and change location of installed headers.
|
|
|
|
- Let `partition` take strings.
|
|
|
|
- Haiku OS support
|
|
|
|
- Add `string/trim`, `string/trimr`, and `string/triml`.
|
|
|
|
- Add `dofile` function.
|
|
|
|
- Numbers require at least 1 significant digit.
|
|
|
|
- `file/read` will return nil on end of file.
|
|
|
|
- Fix various bugs.
|
|
|
|
|
2019-05-09 17:45:19 +00:00
|
|
|
## 0.5.0 - 2019-05-09
|
2019-05-09 17:42:14 +00:00
|
|
|
- Fix some bugs with buffers.
|
2019-05-04 19:03:41 +00:00
|
|
|
- Add `trace` and `untrace` to the core library.
|
2019-05-04 14:11:36 +00:00
|
|
|
- Add `string/has-prefix?` and `string/has-suffix?` to string module.
|
|
|
|
- Add simple debugger to repl that activates on errors or debug signal
|
2019-04-21 19:45:55 +00:00
|
|
|
- Remove `*env*` and `*doc-width*`.
|
2019-04-16 19:48:53 +00:00
|
|
|
- Add `fiber/getenv`, `fiber/setenv`, and `dyn`, and `setdyn`.
|
2019-04-16 23:10:01 +00:00
|
|
|
- Add support for dynamic bindings (via the `dyn` and `setdyn` functions).
|
2019-04-16 19:48:53 +00:00
|
|
|
- Change signatures of some functions like `eval` which no longer takes
|
|
|
|
an optional environment.
|
|
|
|
- Add printf function
|
|
|
|
- Make `pp` configurable with dynamic binding `:pretty-format`.
|
|
|
|
- Remove the `meta` function.
|
2019-04-16 23:10:01 +00:00
|
|
|
- Add `with-dyns` for blocks with dynamic bindings assigned.
|
2019-04-21 19:45:55 +00:00
|
|
|
- Allow leading and trailing newlines in backtick-delimited string (long strings).
|
|
|
|
These newlines will not be included in the actual string value.
|
2019-04-16 19:48:53 +00:00
|
|
|
|
2019-04-13 23:32:31 +00:00
|
|
|
## 0.4.1 - 2019-04-14
|
|
|
|
- Squash some bugs
|
|
|
|
- Peg patterns can now make captures in any position in a grammar.
|
2019-03-24 19:11:00 +00:00
|
|
|
- Add color to repl output
|
2019-03-08 15:17:57 +00:00
|
|
|
- Add array/remove function
|
2019-03-24 02:16:12 +00:00
|
|
|
- Add meson build support
|
|
|
|
- Add int module for int types
|
|
|
|
- Add meson build option
|
|
|
|
- Add (break) special form and improve loop macro
|
|
|
|
- Allow abstract types to specify custom tostring method
|
|
|
|
- Extend C API for marshalling abstract types and other values
|
2019-03-29 03:22:58 +00:00
|
|
|
- Add functions to `os` module.
|
2019-03-08 15:17:57 +00:00
|
|
|
|
2019-03-08 05:56:19 +00:00
|
|
|
## 0.4.0 - 2019-03-08
|
2019-03-08 05:54:53 +00:00
|
|
|
- Fix a number of smaller bugs
|
|
|
|
- Added :export option to import and require
|
|
|
|
- Added typed arrays
|
2019-02-22 01:40:13 +00:00
|
|
|
- Remove `callable?`.
|
2019-03-08 05:54:53 +00:00
|
|
|
- Remove `tuple/append` and `tuple/prepend`, which may have seemed like `O(1)`
|
2019-02-21 02:08:54 +00:00
|
|
|
operations. Instead, use the `splice` special to extend tuples.
|
2019-02-18 20:06:17 +00:00
|
|
|
- Add `-m` flag to main client to allow specifying where to load
|
|
|
|
system modules from.
|
2019-02-17 02:57:47 +00:00
|
|
|
- Add `-c` flag to main client to allow compiling Janet modules to images.
|
2019-02-16 22:55:08 +00:00
|
|
|
- Add `string/format` and `buffer/format`.
|
|
|
|
- Remove `string/pretty` and `string/number`.
|
2019-02-16 18:21:29 +00:00
|
|
|
- `make-image` function creates pre compiled images for janet. These images
|
|
|
|
link to the core library. They can be loaded via require or manually via
|
|
|
|
`load-image`.
|
2019-02-15 23:56:41 +00:00
|
|
|
- Add bracketed tuples as tuple constructor.
|
2019-02-08 18:45:04 +00:00
|
|
|
- Add partition function to core library.
|
|
|
|
- Pre-compile core library into an image for faster startup.
|
2019-02-06 00:49:10 +00:00
|
|
|
- Add methods to parser values that mirror the api.
|
2019-02-06 00:43:41 +00:00
|
|
|
- Add janet\_getmethod to CAPI for easier use of method like syntax.
|
|
|
|
- Add get/set to abstract types to allow them to behave more
|
|
|
|
like objects with methods.
|
2019-01-31 19:48:28 +00:00
|
|
|
- Add parser/insert to modify parser state programmatically
|
2019-01-31 15:09:34 +00:00
|
|
|
- Add debug/stacktrace for easy, pretty stacktraces
|
|
|
|
- Remove the status-pp function
|
|
|
|
- Update API to run-context to be much more sane
|
|
|
|
- Add :lflags option to cook/make-native
|
|
|
|
- Disallow NaNs as table or struct keys
|
|
|
|
- Update module resolution paths and format
|
|
|
|
|
2019-05-30 02:21:06 +00:00
|
|
|
## 0.3.0 - 2019-01-26
|
2019-01-27 01:46:40 +00:00
|
|
|
- Add amalgamated build to janet for easier embedding.
|
|
|
|
- Add os/date function
|
|
|
|
- Add slurp and spit to core library.
|
2019-01-22 20:23:42 +00:00
|
|
|
- Added this changelog.
|
|
|
|
- Added peg module (Parsing Expression Grammars)
|
|
|
|
- Move hand written documentation into website repository.
|