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

Add deprecation notices to the Upgrade guide #6426

Merged
merged 7 commits into from
Oct 26, 2024
Merged

Conversation

sneridagh
Copy link
Member

@sneridagh sneridagh commented Oct 22, 2024


If your pull request closes an open issue, include the exact text below, immediately followed by the issue number. When your pull request gets merged, then that issue will close automatically.

Closes #


📚 Documentation preview 📚: https://volto--6426.org.readthedocs.build/

Copy link

netlify bot commented Oct 22, 2024

Deploy Preview for plone-components canceled.

Name Link
🔨 Latest commit 5b84981
🔍 Latest deploy log https://app.netlify.com/sites/plone-components/deploys/671cc426e961510008bdf8a7

@sneridagh
Copy link
Member Author

@stevepiercy It will still due to search in the docs for places where these items appear and update them accordingly. Let's do it after the overhaul of the blockers for 18.

@sneridagh sneridagh linked an issue Oct 22, 2024 that may be closed by this pull request
Copy link
Collaborator

@stevepiercy stevepiercy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There's a question in there, too. Thank you!

docs/source/upgrade-guide/index.md Outdated Show resolved Hide resolved
docs/source/upgrade-guide/index.md Outdated Show resolved Hide resolved
docs/source/upgrade-guide/index.md Outdated Show resolved Hide resolved
docs/source/upgrade-guide/index.md Outdated Show resolved Hide resolved
docs/source/upgrade-guide/index.md Outdated Show resolved Hide resolved

It became a bad practice, since bundlers rely on the import pathway in order to determine if bundle code together or not.
Since the barrel imports direct import all the code, a lot of imports ended up in the same main chunk of code.
Modern bundlers like Vite also use that technique, so it heavily relies on this.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wait, what? Vite relies on barrel imports, or some other technique? Can you clarify?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nono, Vite knows where to place the module imported (chunks) relying on the imports. So, it works better without barrel import files.

docs/source/upgrade-guide/index.md Outdated Show resolved Hide resolved
docs/source/upgrade-guide/index.md Outdated Show resolved Hide resolved
docs/source/upgrade-guide/index.md Outdated Show resolved Hide resolved
docs/source/upgrade-guide/index.md Outdated Show resolved Hide resolved
Co-authored-by: Steve Piercy <web@stevepiercy.com>
@sneridagh
Copy link
Member Author

@stevepiercy done! Thanks! Please see comments!

docs/source/upgrade-guide/index.md Outdated Show resolved Hide resolved
docs/source/upgrade-guide/index.md Outdated Show resolved Hide resolved
Co-authored-by: David Glick <david@glicksoftware.com>
Copy link
Collaborator

@stevepiercy stevepiercy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm going to merge these changes, and give it one more pass.

docs/source/upgrade-guide/index.md Outdated Show resolved Hide resolved
docs/source/upgrade-guide/index.md Outdated Show resolved Hide resolved
docs/source/upgrade-guide/index.md Outdated Show resolved Hide resolved
docs/source/upgrade-guide/index.md Outdated Show resolved Hide resolved
docs/source/upgrade-guide/index.md Outdated Show resolved Hide resolved
Copy link
Collaborator

@stevepiercy stevepiercy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Combine 3 sentences into 1 paragraph, then LGTM!

docs/source/upgrade-guide/index.md Outdated Show resolved Hide resolved
docs/source/upgrade-guide/index.md Outdated Show resolved Hide resolved
@stevepiercy
Copy link
Collaborator

@sneridagh needs changelog

@stevepiercy
Copy link
Collaborator

@sneridagh sneridagh merged commit 523e750 into main Oct 26, 2024
68 of 69 checks passed
@sneridagh sneridagh deleted the deprecationsforVolto18 branch October 26, 2024 11:46
sneridagh added a commit that referenced this pull request Oct 26, 2024
* main:
  [Next.js] Better Vercel deployment (#6441)
  Replace all `yarn` appearences with `pnpm` (#6433)
  Add deprecation notices to the Upgrade guide (#6426)
  Clean up #6422 (#6443)
sneridagh added a commit that referenced this pull request Oct 26, 2024
* main:
  [Next.js] Better Vercel deployment (#6441)
  Replace all `yarn` appearences with `pnpm` (#6433)
  Add deprecation notices to the Upgrade guide (#6426)
  Clean up #6422 (#6443)
  Rename page title from Frontend to Volto UI (#6438)
  URL-Management control panel: Add missing translations (#6436)
  Fix broken links (#6440)
  Fix broken links (#6439)
  Used resource title instead of resource type in page title. (#6402)
@tisto
Copy link
Member

tisto commented Oct 27, 2024

@stevepiercy thank you for noticing the problem with fz-juelich.de. I told them about the problem and they really appreciate your help. Please remind me to buy you a couple of drinks at Ploneconf in Brasilia. :)

@stevepiercy
Copy link
Collaborator

@tisto I'm glad to hear that. Little things like that make my day. Sadly, I won't be able to make it to Brasilia in person for PloneConf this year.

sneridagh added a commit that referenced this pull request Oct 30, 2024
* main: (111 commits)
  Moved `applyBlockDefaults` one component up so the style is computed correctly (#6451)
  Fix useSelector is returned a different result when called with the s… (#6450)
  Fix page changes not being announced by assistive technology when navigating using the client-side router (#5288)
  BlockStyleWrapper aware of block themes (#6445)
  A11y: Wrap ToC Block within nav tag (#6084)
  Fix backend error when there is no query supplied (#6423)
  Added upgrade guide fix for HMR (#6446)
  Fix CSS lint in Volto Slate (#6444)
  Release 18.0.0-alpha.47
  Release generate-volto 9.0.0-alpha.20
  Release @plone/scripts 3.7.0
  Release @plone/registry 2.0.0-alpha.0
  Improve @plone/registry release-it config
  `@plone/registry` as ESM module, move to TS, complete documentation (#6399)
  [Next.js] Better Vercel deployment (#6441)
  Replace all `yarn` appearences with `pnpm` (#6433)
  Add deprecation notices to the Upgrade guide (#6426)
  Clean up #6422 (#6443)
  Rename page title from Frontend to Volto UI (#6438)
  URL-Management control panel: Add missing translations (#6436)
  ...
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.

Deprecations issued in Volto 18
4 participants