Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a NEWS.md file with release notes #34

Merged
merged 1 commit into from
May 23, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
95 changes: 95 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,95 @@
# v1.2.4 (2021-08-27)

- Feature: `dlog`: Support deferring formatting of log messages to
the `Logger` backends, so that if the log message would be dropped
time isn't wasted formatting it just for the backend to drop it.
This arguably should have triggered a v1.3.0 version bump.

- Feature: `dcontext`: A new `WithoutCancel` function allows
protecting an inner call from being canceled. This arguably should
have triggered a v1.3.0 version bump.

- Feature: `derror`: `PanicToError`: Implement Go 1.13 error
unwrapping. This arguably should have triggered a v1.3.0 version
bump.

- Bugfix: `dexec`: Sort-of fix soft shutdown on `GOOS=windows`. It
is only possible to perform soft cancelation if
`cmd.SysProcAttr.CreationFlags` includes
`syscall.CREATE_NEW_PROCESS_GROUP`. If `cmd.Start(ctx)` detects
that the Context is soft and that bit isn't set, then it returns an
error rather than starting the process.

- Bugfix: `dcontext`: Fix a bug where
`HardContext(WithoutContext(ctx))` can get canceled.

- Minor: `dlog`: The default field order has changed.

- Minor: `dexec`: Log when a signal is sent to the process.

- Chore: Sync all borrowed files from the stdlib up to Go 1.15.14
(from 1.15.5/1.15.6).

# v1.2.3 (2021-06-24)

- Minor: `dexec`: The log formatting is now improved to take
advantage of `dlog` functionality.

# v1.2.2 (2021-06-22)

- Feature: `dlog`: A new `NewTestContextWithOpts` function allows
greater configurability of the created logger. This arguably
should have triggered a v1.3.0 version bump.

# v1.2.1 (2021-03-08)

- Bugfix: `dexec`: Fix a panic that occurs when the `Context` is
canceled for a `Command` for which `.Start()` returned an error.

- Minor: `dhttp`: Have better connection-worker goroutine names.

- Chore: Our patches to `golang.org/x/net` have been merged upstream,
so we have upgraded to that and no longer include a bundled copy of
it that includes our patches. This is not a user-facing change.

# v1.2.0 (2021-01-29)

- Feature: Introduce the `dhttp` library. The `dutil` HTTP functions
are considered deprecated in favor of `dhttp`.

- Change: Move `dutil.PanicToError` to `derror.PanicToError`, with a
compatibility alias at `dutil.PanicToError`.

- Minor: `dcontext`: `Context`s returned from `HardContext` now
implement `fmt.Stringer` for better debugability.

- Additionally, there are several news items regarding the
now-deprecated `dutil` HTTP functions:

+ Feature: The HTTP functions now use `dlog` by default.
+ Bugfix: Correctly call `.Close()` on the underlying
`net/http.Server` upon hard cancelation.
+ Bugfix: Document that it is an error to set `.BaseContext`, detect
this error condition and return an error if it is encountered.
+ Bugfix: Be more careful about leaking resources

# v1.1.1 (2020-12-21)

- Minor: `dgroup`: Be more intelligent about when to include or not
include stacktraces with errors.

# v1.1.0 (2020-12-09)

- Feature: Introduce the `dtime` library.

- Change: Move `dutil.SleepWithContext` to `dtime.SleepWithContext`.
This is a breaking change, but we allowed it anyway because it had
only been around at `dutil` for 12 days.

# v1.0.0 (2020-12-01)

- Feature: Initial public release. This is mostly all fairly mature
code being open-sourced from Ambassador Edge Stack.

- Featur: Add `dutil.SleepWithContext` implementing cancelable
sleep.