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

chore(deps): update dependency tsdx to ^0.14.0 #61

Open
wants to merge 1 commit into
base: staging
Choose a base branch
from

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Apr 20, 2021

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
tsdx ^0.13.2 -> ^0.14.0 age adoption passing confidence

Release Notes

formium/tsdx (tsdx)

v0.14.1

Compare Source

Bugfixes
  • An upstream cache bug that affected certain combinations of build formats has been fixed

    • The error that was fixed would look similar to:
      (typescript) Error: ENOENT: no such file or directory, rename '[...]/my-lib/node_modules/.cache/rollup-plugin-typescript2/rpt2_4c61ae4392b9bd24f4d43d13a3f56419b8b5805d/code/cache_' -> '[...]/my-lib/node_modules/.cache/rollup-plugin-typescript2/rpt2_4c61ae4392b9bd24f4d43d13a3f56419b8b5805d/code/cache'
  • The built-in lodash -> lodash-es replacement no longer breaks imports of lodash/fp

Dependencies
  • The warning about incompatible peerDeps from eslint-config-react-app has been resolved

Commits
Lists of commits:
Bugfixes
  • fix/deps: upgrade rpts2 to fix cache issue (#​896) eaa1c3b
  • fix: don&#​39;t replace lodash/fp imports with lodash-es/fp (#​884) 8b91c74
Dependencies
  • Use compatible eslint-config-react-app and eslint-plugin-react-hooks. (#​890) 57f7dcc
GitHub
  • Create CODE_OF_CONDUCT.md (#​899) e3e80d6
Internal
  • test: add a smoke test that builds all formats (#​896) e2f1b76
  • test: ensure lodash-es replacement is done properly (#​884) 9c4ce68
All Contributors
  • docs: add tanem as a contributor (#​902) 81c8b2d
  • docs: add altrim as a contributor (#​895) d292dd9
  • docs: add ludofischer as a contributor (#​894) da53ea8
Commit Range

v0.14.0

Compare Source

BREAKING CHANGES
Slightly Breaking Changes
Node 10+

Updated the required Node version from 8 to 10.

While previous versions of TSDX began deprecating support for Node 8, it was not officially dropped.
In this release, we have officially dropped Node 8: TSDX now requires Node 10+ as many dependencies that were upgraded similarly do.

This should not impact most users as Node 8 has been EoL for ~9 months now.
Many packages had already required Node 10+ and the vast majority already have support for it.
Most users are on Node 12 or Node 14 already.

Jest 25

Updated the Jest version used by tsdx test from 24 to 25.

The main breaking change in Jest 25 is the upgrade of the default JSDOM environment from JSDOM v11 to JSDOM v15.
For most Jest users, this change either has no impact or will reduce configuration if you've manually set a more up-to-date jest-environment-jsdom in your jest.config.js.
In some rare cases, where code relied on the old version of JSDOM, this may result in breakage.

ts-jest and jest-plugin-typeahead have also been upgraded to support Jest 25.

Babel Changes
babel-plugin-transform-async-to-promises -> babel-plugin-polyfill-regenerator

async-to-promises has been unmaintained for around a year now and has several correctness issues, many of which have affected TSDX users. For that reason, we've switched to using babel-plugin-polyfill-regenerator instead, which will add a pure, non-polluting regenerator-runtime polyfill if your targets require it.

The vast majority of browsers (94.37%) now support async/await and generators with no polyfilling necessary, but the default preset-env will add it. If you don't already have one, we recommend adding a .browserslistrc (or preset-env targets) to specify the environments you're targeting.

This should be totally backward-compatible, but it may change the output quite a bit, including making bundles larger due to inclusion of regenerator-runtime.

babel-plugin-macros

TSDX's internal Babel plugin ordering has changed, moving babel-plugin-macros to be first.
This was done in order to support several use-cases like styled-components/macro, which previously did not work due to the ordering.

This shouldn't really break anything, but there is an off chance it might have an impact on some rare builds.

Improvements
  • Jest 25 / JSDOM 15 usage per above
  • Due to the babel-plugin-polyfill-regenerator change above, TSDX now supports polyfilling generators out-of-the-box. Previously we only supported async/await with babel-plugin-transform-async-to-promises and required users to configure their own plugins for generator polyfilling
  • styled-components/macro support per above
  • A --max-warnings flag has been added to tsdx lint, which works the same as ESLint's --max-warnings flag
Template Improvements
  • Storybook template has been updated to Storybook v6, which significantly simplifies the config and adds some features
  • Storybook template has now been configured to type-check during Storybook builds
  • size-limit has been added to all templates for bundle analysis via NPM/Yarn scripts and a GitHub Action
  • All templates' GitHub Actions now have matrix testing for different Node versions and OSes out-of-the-box
  • All templates' GitHub Actions now have simplified config and improved caching using bahmutov/npm-install
  • All templates' tsconfig.json now set skipLibCheck, forceConsistentCasingInFileNames, and noEmit
    • The former two are now recommended by TS and the latter one is just a usability improvement for those who use tsc for type-checking. skipLibCheck will also greatly increase performance of tsc's type-checking
  • All templates' tsconfig.json now have detailed comments explaining nearly every configuration option in use
Docs
  • patch-package is now officially listed as a customization option
Dependencies
  • Jest 25 and Node 10+ per above. Most deps were updated by a major or two.
  • @babel/preset-env was updated to the latest minor to support nullish coalescing and optional chaining without additional plugins, as well as to update the compatibility table.
    • If you have snapshots that rely on specific output from preset-env or Autoprefixer, as TSDX's internal test suite does, you may need to update those snapshots.
  • All vulnerabilities and deprecation warnings should now be resolved
  • Due to some upgrades, clean-up, and use of yarn-deduplicate, overall install size should have decreased a good bit

Commits
Lists of commits:
Improvements
  • Add --max-warnings flag to tsdx lint (#​858) dd92fec
Bugfixes
  • change: replace useBuiltIns with polyfill-regenerator (#​795) 6e405d5
  • change: replace async-to-promises with regenerator (#​795) 2aefc3d
  • (fix): change plugin order to make styled-components/macro work (#​644) 6d7257c
Template Improvements
  • feat: type-check stories during Storybook build (#​876) f1ddccb
  • feat: add test matrix to all templates' CI (#​882) 8449699
  • fix: use @​bahmutov/npm-install in templates' CI (#​882) f109fe9
  • Remove redundant CI=true from templates' github workflows (#​870) 6ba173f
  • docs: add comment that noUnused* overlaps with an ESLint rule (#​864) e50bc51
  • docs: add comments for nearly all tsconfig options in use (#​864) 10a6137
  • feat: add noEmit to templates' tsconfigs (#​864) c802b8b
  • feat: add skipLibCheck and forceConsistentCasingInFileNames (#​864) e0f79fe
  • feat: add size-limit bundle size analysis tool to templates (#​705) 2938ed9
  • update react-with-storybook template for Storybook v6 (#​805) 51e47a7
Docs
  • docs: remove reference to Node 10+ req for create (#​881) a95d2d8
  • multi-entry: temporarily change docs to singular "module" (#​862) ac98a73
  • docs: capitalize 'S' in TypeScript (#​752) da4b189
  • docs: add patch-package reference to Customization section (#​855) 08a8ef8
  • docs: update features and comparison with changes from past year (#​847) 1619bc1
  • docs/fix: missing "to" infinitive marker (#​843) 49fb303
Dependencies
  • deps: upgrade several more deps' majors (#​879) a9434f9
  • deps: update extractErrors plugin's evalToString file (#​878) 0e45050
  • deps: update extractErrors Babel plugins to Babel 7 (#​878) 33a6bde
  • license: add FB License header to all extractErrors code (#​878) 2caad24
  • Migrate from rollup-plugin-babel to @​rollup/plugin-babel (#​789) f592595
  • fix/deps: dependabot YAML doesn't support anchors/aliases (#​850) f8b8317
  • env/deps: remove greenkeeper.json, configure dependabot.yml (#​846) 45aea66
  • deps: upgrade Babel preset-env, remove now redundant plugins (#​838) 8e2d750
  • clean/deps: remove unused Babel plugins: transform-runtime, dynamic-import (#​837) 485e04b
  • deps: apply yarn-deduplicate and add deduplicate script (#​683) d053912
  • security/deps: audit fix several deps' vulnerabilities (#​824) 4966edd
  • (deps): upgrade to Jest 25 (#​679) 116a043
  • (deps): upgrade several deps' majors; require Node 10+ (#​678) e018210
GitHub
  • github: use envinfo for getting versions in issue reports (#​820) 349f299
Internal
  • ci: make internal job names more consistent w/ templates' (#​882) 49a3521
  • ci: update matrix to use Node 14 instead of Node 13 (#​880) dac1fd7
  • clean: bad whitespace and Flow types in extractErrors (#​878) 2d0f279
  • test: compatible targets shouldn't insert regeneratorRuntime (#​795) 794e5ad
  • test: add an async syntax regression test (#​795) 814c83b
  • refactor/test: move generator test to build-default (#​795) 2f8544d
  • ci: add deduplicate:check script and run on precommit and CI (#​683) 22133ce
  • deps: update np to fix MFA bug during publishes (#​816) fff9a43
All Contributors
  • docs: add felixmosh as a contributor (#​883) 427e5ad
  • docs: add vladdy-moses as a contributor (#​877) 7edf7ea
  • docs: add in19farkt as a contributor (#​875) ade9483
  • docs: add CyriacBr as a contributor (#​874) 0032086
  • docs: add seungdols as a contributor (#​873) ae15bd3
  • docs: add hb-seb as a contributor (#​872) 33c8317
  • docs: add KATT as a contributor (#​868) f6c296a
  • docs: add thany as a contributor (#​867) d996a0e
  • docs: add orta as a contributor (#​866) 198c16f
  • docs: add slikts as a contributor (#​865) 42f56a0
  • docs: add georgevarghese185 as a contributor (#​863) 22a0b7b
  • docs: add strdr4605 as a contributor (#​860) d4c3bb2
  • docs: add kyarik as a contributor (#​845) 826cd07
  • docs: add andresz1 as a contributor (#​842) aaa3dce
  • docs: add Bnaya as a contributor (#​836) dbdaba1
  • docs: add kylemh as a contributor (#​835) d5bbcf7
  • docs: add HipsterBrown as a contributor (#​834) 199841d
Commit Range

Postscript

Apologies again for the delay on getting to v0.14.0, COVID added a lot of stress and work had been busy, to say the least. Unfortunately I wasn't able to get to all the changes I wanted to into it, but v0.14.0 has been waiting long enough. Only two complex issues were left out and many more PRs added in, though not everything had made it into v0.13.x either.

I also wanted to push Rollup 2, TS 4.0, Prettier 2, and ESLint upgrades into this, but the breaking changes in the changelog started getting too big, so I decided to wait a bit to split those changes across more releases to not throw too much breakage at users at once.

If you're wondering, all of my co-workers, my team, and I were suddenly laid off just over a week ago, so that's why I had time (and want to distract myself) to push out ~2 dozen PRs the past week 😕

Best wishes and stay safe to everyone!

v0.13.3

Compare Source

Optimizations
  • Types are only checked once now, type declarations are only emitted once now, and cache is shared with all formats
    • Previously it was once per each format
    • This was a roughly 15-30% perf boost altogether on the TSDX test suite, but YMMV
Template Bugfixes
  • Templates no longer have baseUrl or paths set in their tsconfig, fixing a long-standing bug
Template Docs
  • Template READMEs have been significantly improved, adding consistency between all 3, fixing outdated portions, and better describing certain behaviors
Commits
Lists of commits:
Optimizations
  • optim: only check types once (#​758) 79dddc4
  • (optim): no need for separate cacheRoot per format (#​691) 3357cbf
  • (optim/fix): only emit type declarations once (#​691) 6929300
Template Improvements
  • deps: upgrade actions/cache to v2 in all templates (#​750) 984e024
Template Bugfixes
  • (fix): templates should not have baseUrl or paths set (#​707) 17ffcd2
Template Docs
  • (docs): basic template README should be like React ones (#​706) e7128f8
  • (docs): add GitHub Actions info to template CI READMEs (#​706) effdc31
  • (docs): remove duplicative "Using the Playground" section (#​706) f360f9b
  • (docs): improve consistency in template READMEs (#​706) 356bbda
  • (docs): remove version/permalink refs in template READMEs (#​706) 76a0530
  • (docs): update outdated Jest info in template READMEs (#​706) d4ff914
Docs
  • lint: manually fix new website ESLint errors and warnings (#​794) 9fea19d
  • format: auto-fix new website formatting errors (#​794) 3dfdafb
  • format: auto-fix help dialog formatting error (#​794) 99d982a
  • Update features.js f0963cb
  • Fix edit link e85b9ab
  • Remove unused image 4f6bdb4
  • Remove docusaurus site 1b3452b
  • Put up redirect at old docs site 5f49acd
  • New docs site! (#​765) b09e195
  • Update help channels to point to formium org (#​762) 25a39cc
  • fix/help: test command no longer runs Jest in watch mode (#​734) 8b148ce
  • (fix): update messages.ts github links (#​754) b91ab47
  • (docs): Comparison to -> with (#​737) edcb9e7
  • (docs): add Jest and ESLint subsections to Customization (#​697) 4e4df28
  • [docs] add homepage to package.json (#​682) 35f162a
GitHub
  • github: disable blank issues without an issue template (#​814) 0139cae
Internal
  • greenkeeper: remove website from greenkeeper config (#​815) fc22471
  • (clean): remove redundant tsconfig strict opts in tests (#​690) 5c73483
  • Simplify getInputs function (#​745) 14bfa39
All Contributors
  • docs: add devrelm as a contributor (#​777) 5e5c3f8
  • docs: add jssee as a contributor (#​776) 1225a92
  • docs: add yuriy636 as a contributor (#​775) 267e488
  • docs: add dandv as a contributor (#​774) b344c9e
  • docs: add bmihelac as a contributor (#​773) 32126c3
  • docs: add Semperia as a contributor (#​772) f1335f1
  • docs: update org for all-contributors (#​772) 12971e5
Commit Range

Postscript

Apologies for the delay on releasing this and the delay on getting to v0.14.0, COVID added a lot of stress and work has been busy, to say the least. I'm behind on all of my OSS repos, TSDX is actually the most maintained (but needs a lot more attention) 😕
v0.14.0 will be the next release, which will be a breaking change mostly due to updating dependencies' majors. I held back on it to get more into v0.13.x before getting busy, but unfortunately I wasn't able to get to all the changes I wanted to into it, but v0.14.0 has been waiting long enough

Wishing everyone well! Please stay safe and please do your part to follow public health guidelines!

✊ Quoting from a Chromium release ✊ :

Black Lives Matter. Saying this does not mean that other lives do not matter. It should not be controversial to say this. If I say Chromium updates matter, it does not mean that other Fedora packages do not matter, it means that a Chromium update is needed to fix this giant pile of severe security vulnerabilities, here, today, now: [...]

In making that analogy, I do not intend to trivialize BLM. In no way do I mean to compare the lives of people to a silly web browser update. People are infinitely important than software. But since I'm here to push this software update out, I am also choosing to say clearly and unambiguously that Black Lives Matter.

Open Source proves that many voices, many contributions, together can change the world. It depends on it. This is my voice.


Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate renovate bot requested a review from walleXD as a code owner April 20, 2021 20:34
@renovate renovate bot force-pushed the renovate/tsdx-0.x branch from 825c914 to 54f388b Compare May 7, 2021 14:31
@renovate renovate bot changed the title chore(deps): update dependency tsdx to v0.14.1 chore(deps): update dependency tsdx to ^0.14.0 May 7, 2021
@codecov
Copy link

codecov bot commented May 7, 2021

Codecov Report

Merging #61 (d5506a2) into staging (ccd6135) will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff            @@
##           staging       #61   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files            5         5           
  Lines          119       119           
  Branches         7         7           
=========================================
  Hits           119       119           
Flag Coverage Δ
unittests 100.00% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.


Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update ccd6135...d5506a2. Read the comment docs.

@renovate renovate bot force-pushed the renovate/tsdx-0.x branch from 54f388b to 12a644f Compare May 14, 2021 10:12
@renovate renovate bot changed the title chore(deps): update dependency tsdx to ^0.14.0 chore(deps): update dependency tsdx to v0.14.1 May 14, 2021
@renovate renovate bot force-pushed the renovate/tsdx-0.x branch from 12a644f to d5506a2 Compare March 7, 2022 13:53
@renovate renovate bot changed the title chore(deps): update dependency tsdx to v0.14.1 chore(deps): update dependency tsdx to ^0.14.0 Nov 20, 2022
@renovate renovate bot force-pushed the renovate/tsdx-0.x branch from d5506a2 to d41c3d2 Compare November 20, 2022 17:24
@renovate renovate bot changed the title chore(deps): update dependency tsdx to ^0.14.0 Update dependency tsdx to ^0.14.0 Dec 17, 2022
@renovate renovate bot changed the title Update dependency tsdx to ^0.14.0 chore(deps): update dependency tsdx to ^0.14.0 Dec 17, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants