Skip to content

Commit

Permalink
Connection: hoist Identity Crisis package back into Connection (#36968)
Browse files Browse the repository at this point in the history
* Move the Identity Crisis package contents into Connection package.
* Abandon the Identity Crisis package.
* Ensure backward and forward compatibility for existing code.

Committed via a GitHub action: https://github.com/Automattic/jetpack/actions/runs/9272329232

Upstream-Ref: Automattic/jetpack@ce733fc
  • Loading branch information
sergeymitr authored and matticbot committed May 28, 2024
1 parent 25ce34a commit 4923347
Show file tree
Hide file tree
Showing 25 changed files with 3,279 additions and 12 deletions.
9 changes: 9 additions & 0 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"presets": [
["@babel/preset-env", {
"targets": {
"node": "current"
}
}]
]
}
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,13 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [2.9.0-alpha] - unreleased

This is an alpha version! The changes listed here are not final.

### Added
- Move Identity Crisis handling functionality into the package.

## [2.8.6] - 2024-05-28
### Changed
- Internal updates.
Expand Down Expand Up @@ -1088,6 +1095,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

- Separate the connection library into its own package.

[2.9.0-alpha]: https://github.com/Automattic/jetpack-connection/compare/v2.8.6...v2.9.0-alpha
[2.8.6]: https://github.com/Automattic/jetpack-connection/compare/v2.8.5...v2.8.6
[2.8.5]: https://github.com/Automattic/jetpack-connection/compare/v2.8.4...v2.8.5
[2.8.4]: https://github.com/Automattic/jetpack-connection/compare/v2.8.3...v2.8.4
Expand Down
10 changes: 10 additions & 0 deletions babel.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
const config = {
presets: [
[
'@automattic/jetpack-webpack-config/babel/preset',
{ pluginReplaceTextdomain: { textdomain: 'jetpack-connection' } },
],
],
};

module.exports = config;
9 changes: 5 additions & 4 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@
"automattic/jetpack-a8c-mc-stats": "^2.0.1",
"automattic/jetpack-admin-ui": "^0.4.2",
"automattic/jetpack-assets": "^2.1.11",
"automattic/jetpack-constants": "^2.0.2",
"automattic/jetpack-constants": "^2.0.3-alpha",
"automattic/jetpack-roles": "^2.0.2",
"automattic/jetpack-status": "^3.2.1",
"automattic/jetpack-status": "^3.2.2-alpha",
"automattic/jetpack-redirect": "^2.0.2"
},
"require-dev": {
Expand All @@ -26,7 +26,8 @@
"classmap": [
"legacy",
"src/",
"src/webhooks"
"src/webhooks",
"src/identity-crisis"
]
},
"scripts": {
Expand Down Expand Up @@ -58,7 +59,7 @@
"link-template": "https://github.com/Automattic/jetpack-connection/compare/v${old}...v${new}"
},
"branch-alias": {
"dev-trunk": "2.8.x-dev"
"dev-trunk": "2.9.x-dev"
},
"dependencies": {
"test-only": [
Expand Down
1 change: 1 addition & 0 deletions dist/identity-crisis.asset.php
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<?php return array('dependencies' => array('react', 'wp-components', 'wp-compose', 'wp-data', 'wp-element', 'wp-i18n', 'wp-url'), 'version' => '5c158907d48bbf89f8d9');
1 change: 1 addition & 0 deletions dist/identity-crisis.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions dist/identity-crisis.js

Large diffs are not rendered by default.

5 changes: 5 additions & 0 deletions dist/identity-crisis.js.LICENSE.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
/*!
Copyright (c) 2018 Jed Watson.
Licensed under the MIT License (MIT), see
http://jedwatson.github.io/classnames
*/
Loading

0 comments on commit 4923347

Please sign in to comment.