···11# Breaking changes to make for v2
2233-- Remove `[1 ..]` syntax: due to a bug in the parser we accept that as a valid
44- list. At the moment we just raise a warning saying it's deprecated and the
55- formatter removes it.
66-- Do not allow `_ as a` anywhere in patterns. It doesn't make a lot of sense
77- since one could just write `a` instead and we don't want two ways of doing the
88- same thing.
99-- Do not allow shadowing an imported value, the same way one can't define two
1010- top level functions with the same name.
1111-- Do not allow to use dev dependencies under `src/`.
33+## `[1 ..]` syntax
44+55+Due to a bug in the parser we accept `[1, ..]` as a valid list value.
66+77+- [x] Emits warning when used.
88+- [x] Formatter rewrites it to desired syntax.
99+1010+## `_ as a` syntax
1111+1212+This pattern doesn't make sense as one could write `a` instead. We don't want
1313+two ways of doing the same thing.
1414+1515+- [ ] Emits warning when used.
1616+- [ ] Formatter rewrites it to desired syntax.
1717+1818+## Shadowing imported values
1919+2020+Do not allow shadowing an imported value, the same way one can't define two
2121+top level functions with the same name.
2222+2323+- [ ] Emits warning when used.
2424+2525+## Import one module multiple times
2626+2727+Do not one module to be imported multiple times. This is currently accepted so
2828+long as each import uses a different alias.
2929+3030+- [ ] Emits warning when used.
3131+3232+## Development dependencies in `src/` code
3333+3434+Do not allow to use dev dependencies within `src/`.
3535+3636+- [ ] Emits warning when used.
3737+- [ ] Blocks `gleam export erlang-shipment`.
3838+- [ ] Blocks `gleam publish`.
3939+4040+## JavaScript runtime error `fn` property
4141+4242+On JavaScript there is a deprecated `fn` property. This was a mistake, it
4343+should have been `function`. It still exists today due to backwards
4444+compatibility.