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

Remove 4.2 deprecated features #10952

Merged
merged 7 commits into from
Oct 26, 2018
Merged

Conversation

youknowriad
Copy link
Contributor

@youknowriad youknowriad commented Oct 23, 2018

A lot of cleanup in this release, which is nice:

  • The webpack config is simpler
  • The data module is simpler

Todo

  • Update CHANGELOG
  • Remove useless tests
  • Remove useless package dependencies.

@youknowriad youknowriad added this to the 4.2 milestone Oct 23, 2018
@youknowriad youknowriad self-assigned this Oct 23, 2018
@youknowriad youknowriad requested a review from a team October 23, 2018 13:44
@@ -169,11 +169,7 @@ export function mediaUpload( {
caption: get( savedMedia, [ 'caption', 'raw' ], '' ),
title: savedMedia.title.raw,
url: savedMedia.source_url,
mediaDetails: {},
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Is this the right change @jorgefilipecosta ?

aduth
aduth previously requested changes Oct 23, 2018
Copy link
Member

@aduth aduth left a comment

Choose a reason for hiding this comment

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

Loving the red. ❤️

/**
* WordPress dependencies
*/
import deprecated from '@wordpress/deprecated';
Copy link
Member

Choose a reason for hiding this comment

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

Remove jest.mock a few lines below as well.

@@ -293,7 +293,6 @@ function gutenberg_register_scripts_and_styles() {
array(
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@atimmer Some changes here to keep track of, for 4.2 merge to Core.

@@ -99,7 +91,7 @@ class TabPanel extends Component {
className="components-tab-panel__tab-content"
tabIndex="0"
>
{ this.props.children( Object.assign( new String( selectedTab.name ), selectedTab ) ) }
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Sad to see this magic trick go :)

@aduth
Copy link
Member

aduth commented Oct 23, 2018

There appears to be a mobile test failure? cc @hypest

@hypest
Copy link
Contributor

hypest commented Oct 23, 2018

👋 , thanks for the ping @aduth . Yeah, the mobile test fails because setUnknownTypeHandlerName() is not found. I see that this PR deprecates that function so, good catch from the mobile tests I'd say :).

This should be easy to fix AFAICT. @youknowriad or @aduth , interested in filing a PR to the mobile repo to fix this? A good chance to get a PR merged to the mobile project with your name on it ;)
Let me know if you'd like me to wrangle this instead. In any case, this PR will need to update the mobile submodule ref to point to a master with the fix merged.

Copy link
Member

@aduth aduth left a comment

Choose a reason for hiding this comment

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

Needs rebase, but otherwise 👍

@youknowriad youknowriad merged commit 4e92ac3 into master Oct 26, 2018
@youknowriad youknowriad deleted the update/remove-4-2-deprecations branch October 26, 2018 08:59
daniloercoli added a commit that referenced this pull request Oct 26, 2018
…rnmobile/merge-blocks-on-backspace

* 'master' of https://github.com/WordPress/gutenberg:
  Do not add isDirty prop to DOM (#11093)
  Format API (#10209)
  Remove 4.2 deprecated features (#10952)
  Update `@wordpress/hooks` README to include namespace mention (#11061)
  Feature: save lock control via actions (#10649)
  Fix usage of `preg_quote()` (#10998)
  Update plugin version to 4.1.1 (#11078)
  Improve preloading request code (#11007)
  Fix dynamic blocks not rendering in the frontend (#11050)
  Media & Text: Fixing vertical alignment of the image (#11025)
  Date: Mark getSettings as experimental (#10636)
  Improve handling of centered 1-col galleries with small images (#11040)
  Use better help text for ALT text input; fixes #8391. (#11052)

# Conflicts:
#	packages/editor/src/components/rich-text/index.native.js
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.

3 participants