# Deprecations

A deprecation is an API that still works, has a replacement and is listed for removal. A deprecated API behaves as it did on the day it was deprecated for the rest of its major version, and it is removed only in the major version named in the table, never in a minor or a patch release.

Using one writes a single line, `[hamur] deprecated: <old> is replaced by <new> (<id>)`, to `console.warn` the first time per process. It appears in `hamur dev`, in the browser console of `hamur dev` and in tests, and never in a production build. The `Warns` column says `editor` for a name that cannot warn at run time; its `@deprecated` tag shows in your editor instead. This page lists what is deprecated now; a removed API leaves it and stays in the changelog. `hamur upgrade --fix` rewrites the uses of these that have a fix.

Nothing is deprecated today.

| Id  | Deprecated | Use instead | Since | Removed in | Opt in | Warns |
| --- | ---------- | ----------- | ----- | ---------- | ------ | ----- |
