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

Change Amp root namespace to AmpProject #4364

Merged
merged 1 commit into from
Mar 7, 2020

Conversation

schlessera
Copy link
Collaborator

Summary

As noted in #4188, the root namespace Amp is already taken by an established PHP project.

This PR changes the root namespace for all three packages (plugin, common library & optimizer library) from Amp to AmpProject.

Fixes #4188

Checklist

  • My pull request is addressing an open issue (please create one otherwise).
  • My code is tested and passes existing tests.
  • My code follows the Engineering Guidelines (updates are often made to the guidelines, check it out periodically).

@googlebot googlebot added the cla: yes Signed the Google CLA label Mar 7, 2020
@schlessera
Copy link
Collaborator Author

@westonruter As far as I can tell, we never released any namespaced code so far, right? Then there are no class aliases needed for backward compatibility.

@schlessera schlessera added Optimizer Enhancement New feature or improvement of an existing one labels Mar 7, 2020
@westonruter westonruter merged commit 1c5d7b2 into develop Mar 7, 2020
@westonruter westonruter deleted the 4188-change-amp-root-namespace branch March 7, 2020 07:14
@westonruter westonruter added this to the v1.5 milestone Mar 7, 2020
@westonruter
Copy link
Member

Merged in spite of build failure, because failure is due to the dreaded SVG HTTP error not related to the changes here.

westonruter added a commit that referenced this pull request Mar 7, 2020
westonruter added a commit that referenced this pull request Mar 9, 2020
…validation-error

* 'develop' of github.com:ampproject/amp-wp: (58 commits)
  Remove vendor dirs for library if they exist
  Remove dotenv config
  Update package-lock.json
  Update dependency babel-eslint to v10.1.0 (#4344)
  Update dependency @wordpress/e2e-test-utils to v4.3.1 (#4360)
  Update dependency react-dom to v16.13.0 (#4348)
  Update dependency uuid to v7 (#4325)
  Update dependency eslint-plugin-jest to v23.8.2 (#4346)
  Update dependency cross-env to v7.0.2 (#4359)
  Remove now unneeded dotenv dependency
  Remove extraneous closing brace from add_nav_menu_styles
  Used fixed-height layout for iframe
  Add missing allow-popups sandbox for iframe
  Re-add image assets for tests
  Improve phpdoc, method names, and remove unnecessary global namespace qualifier
  Throw Exception instead of Error
  Wait for server to start
  Improve static analysis for passing ownerDocument
  Do capital_K_dangit for TikTok
  Update namespace reference after #4364
  ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla: yes Signed the Google CLA Enhancement New feature or improvement of an existing one Optimizer
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Change Amp root namespace
3 participants