Title: Design Meeting Notes, 1/25/2023 · Issue #52469 · microsoft/TypeScript · GitHub
Open Graph Title: Design Meeting Notes, 1/25/2023 · Issue #52469 · microsoft/TypeScript
X Title: Design Meeting Notes, 1/25/2023 · Issue #52469 · microsoft/TypeScript
Description: TypeScript is a superset of JavaScript that compiles to clean JavaScript output. - Design Meeting Notes, 1/25/2023 · Issue #52469 · microsoft/TypeScript
Open Graph Description: TypeScript is a superset of JavaScript that compiles to clean JavaScript output. - Design Meeting Notes, 1/25/2023 · Issue #52469 · microsoft/TypeScript
X Description: TypeScript is a superset of JavaScript that compiles to clean JavaScript output. - Design Meeting Notes, 1/25/2023 · Issue #52469 · microsoft/TypeScript
Opengraph URL: https://github.com/microsoft/TypeScript
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Design Meeting Notes, 1/25/2023","articleBody":"# `ignoreDeprecations` in TS 4.9\r\n\r\nhttps://github.com/microsoft/TypeScript/issues/51909\r\n\r\n* `importsNotUsedAsValues` and `preserveValueImports` are deprecated in favor of `verbatimModuleSyntax`\r\n* You're supposed to use the `ignoreDeprecations` flag to temporarily disable this as you migrate off the flags.\r\n* Can't make a `tsconfig.json` that works for both 4.9 and 5.0.\r\n* Nice to be able to let a team move over incrementally.\r\n* Want to bring `ignoreDeprecations` back to 4.9\r\n * Helps with editor scenarios too while VS Code still ships 4.9.\r\n\r\n# Moving from barrel imports in our codebase\r\n\r\nhttps://github.com/microsoft/TypeScript/pull/51455\r\nhttps://github.com/microsoft/TypeScript/pull/51590\r\n\r\n* In our migration to modules, we use barrel imports to keep things simple-ish, keep initialization order.\r\n* Big task, but @a-tarasyuk took it on.\r\n* Had to resolve issues with cycles, seems like it's fine.\r\n * Gives some benefits that now some tools can analyze our codebase to detect cycles.\r\n* Makes moving code around harder.\r\n * But that is an empathy gap between us an our users.\r\n * We should think about editor features to help here in 5.1\r\n * Also, would be nice if we could detect cycles in some way.\r\n* Some instances where we still use `(ts as any).Yadda` for preserved const enums.\r\n* By explicitly declaring what the parser imports from, other tools can more-easily tree shake from us.\r\n* Also #51440\r\n * Previously, these attempts ran into crashes due to circularities.\r\n * Fixing the cycles would allow many of these to operate correctly.\r\n* So #51455\r\n * Seems uncontroversial.\r\n* #51440\r\n * Something to be said about flat files.\r\n * Would be nice to ship an ESM version\r\n* Moving to direct imports?\r\n * Seems okay.\r\n\r\n# Import Sorting\r\n\r\nhttps://github.com/microsoft/TypeScript/pull/52090\r\n\r\n* ESLint doesn't tie-break sorting well - i.e. if you import `hasDecorators` and `HasDecorators`, the two might flip.\r\n * So it's not a stable sort!?\r\n * No.\r\n* We made more internationally-sensitive changes in #51733.\r\n * Compatible with what? ESLint doesn't give deterministic (or is it stable?) sorting, we do.\r\n * Based on `eslint/sort-imports`.\r\n * They used `toUppercase`, we did `toLowercase` for case insensitivity.\r\n * Noticeable for ASCII characters in between - namely the underscore (`_`)\r\n* #52115\r\n * Uses `Intl.Collator` to do sorting if desired.\r\n * Compatible with `eslint-plugin-simple-import-sort`.\r\n* Does Prettier do import sorting?\r\n * No.\r\n * Thankfully. Don't need 30 tools fighting with each other. 😅\r\n* dprint does if you want, and it's compatible!\r\n* Sounds like we have good-enough coverage to say \"we support all of them.\"\r\n* So okay with changing our repo to new linter options?\r\n * Seems fine.\r\n* Aside: need to copy settings over for auto-imports(?)\r\n\r\n","author":{"url":"https://github.com/DanielRosenwasser","@type":"Person","name":"DanielRosenwasser"},"datePublished":"2023-01-27T20:02:53Z","url":"https://github.com/microsoft/TypeScript/issues/52469"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /:user_id/:repository/issues/:id(.:format) |
| route-controller | issues |
| route-action | show |
| fetch-nonce | v2:37aa74fd-411c-9bc4-d479-8cd4cb94f64f |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 9472:1F65:135AAC4:1892C46:6B018027 |
| html-safe-nonce | 5ec6d59fa47b27b6d428226b65856b56b4a0dd893d7e4eb2d1d87d30adf4ec12 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5NDcyOjFGNjU6MTM1QUFDNDoxODkyQzQ2OjZCMDE4MDI3IiwidmlzaXRvcl9pZCI6IjcxOTQ1MjgwMDE2ODQ1MDQ2MTUiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 80dae0aff1191b134a6e65c6ff89f0161267b032182edf0dc118ed3491dd67cc |
| hovercard-subject-tag | repository:20929025 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/microsoft/TypeScript/issues/52469 |
| twitter:image | https://opengraph.githubassets.com/47cde802d3847ff7ce61448bd4f8c3272d012c9a3f2b9085b71a67530bf7bbd6/microsoft/TypeScript |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/47cde802d3847ff7ce61448bd4f8c3272d012c9a3f2b9085b71a67530bf7bbd6/microsoft/TypeScript |
| og:image:alt | TypeScript is a superset of JavaScript that compiles to clean JavaScript output. - Design Meeting Notes, 1/25/2023 · Issue #52469 · microsoft/TypeScript |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | cc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c |
| turbo-cache-control | no-cache |
| go-import | github.com/microsoft/TypeScript git https://github.com/microsoft/TypeScript.git |
| octolytics-dimension-user_id | 6154722 |
| octolytics-dimension-user_login | microsoft |
| octolytics-dimension-repository_id | 20929025 |
| octolytics-dimension-repository_nwo | microsoft/TypeScript |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 20929025 |
| octolytics-dimension-repository_network_root_nwo | microsoft/TypeScript |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 8c77c9e8439031ad54c75a250694842892f693e1 |
| ui-target | canary-2 |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width