mirror of
https://github.com/lune-org/lune.git
synced 2024-12-12 04:50:36 +00:00
Document new breaking changes in changelog
This commit is contained in:
parent
ef294f207c
commit
e5bda57665
1 changed files with 40 additions and 0 deletions
40
CHANGELOG.md
40
CHANGELOG.md
|
@ -8,6 +8,46 @@ All notable changes to this project will be documented in this file.
|
||||||
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
||||||
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
||||||
|
|
||||||
|
## `0.9.0`
|
||||||
|
|
||||||
|
### Breaking changes
|
||||||
|
|
||||||
|
- Added two new process spawning functions - `process.create` and `process.exec`, removing the previous `process.spawn` API completely. ([#211])
|
||||||
|
|
||||||
|
To migrate from `process.spawn`, use the new `process.exec` API which retains the same behavior as the old function.
|
||||||
|
|
||||||
|
The new `process.create` function is a non-blocking process creation API and can be used to interactively
|
||||||
|
read and write stdio of the process.
|
||||||
|
|
||||||
|
```lua
|
||||||
|
local child = process.create("program", {
|
||||||
|
"cli-argument",
|
||||||
|
"other-cli-argument"
|
||||||
|
})
|
||||||
|
|
||||||
|
-- Writing to stdin
|
||||||
|
child.stdin:write("Hello from Lune!")
|
||||||
|
|
||||||
|
-- Reading from stdout
|
||||||
|
local data = child.stdout:read()
|
||||||
|
print(buffer.tostring(data))
|
||||||
|
```
|
||||||
|
|
||||||
|
- WebSocket methods in `net.socket` and `net.serve` now use standard Lua method calling convention and colon syntax.
|
||||||
|
This means `socket.send(...)` is now `socket:send(...)`, `socket.close(...)` is now `socket:close(...)`, and so on.
|
||||||
|
|
||||||
|
- `Runtime::run` now returns a more useful value instead of an `ExitCode` ([#178])
|
||||||
|
|
||||||
|
### Changed
|
||||||
|
|
||||||
|
- Documentation comments for several standard library properties have been improved ([#248], [#250])
|
||||||
|
- Error messages no longer contain redundant or duplicate stack trace information
|
||||||
|
|
||||||
|
[#178]: https://github.com/lune-org/lune/pull/178
|
||||||
|
[#211]: https://github.com/lune-org/lune/pull/211
|
||||||
|
[#248]: https://github.com/lune-org/lune/pull/248
|
||||||
|
[#250]: https://github.com/lune-org/lune/pull/250
|
||||||
|
|
||||||
## `0.8.9` - October 7th, 2024
|
## `0.8.9` - October 7th, 2024
|
||||||
|
|
||||||
### Changed
|
### Changed
|
||||||
|
|
Loading…
Reference in a new issue