This commit is contained in:
Tutur33
2023-11-24 22:35:41 +01:00
parent 3c0b507a93
commit 7644b2a0f7
45165 changed files with 4803356 additions and 3 deletions
+16
View File
@@ -0,0 +1,16 @@
# Version 2.0 (with breaking changes)
- Added asynchronous methods, `withSourcesAsync` and `cleanAsync`.
- All property accessors like `.clean` are now methods (e.g. `.clean ()`) for consistency reasons
- `.pretty` now `.asTable (opts?: { maxColumnWidths:? { callee, file, sourceLine } })`
- Also, it does not call `withSources` automatically — you need to call it explicitly.
- It is no longer `extends Array` due to non-working user subclassing with Babel ES5
- Use `.items` to access original array
- No static methods and properties (except public `.locationsEqual` helper)
- `.isThirdParty` is now just an overrideable method
- `.maxColumnWidths` is an overrideable method + a configuration option passed to `asTable ()` method