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

Release 3.1.0 #608

Merged
merged 433 commits into from
Jan 21, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
433 commits
Select commit Hold shift + click to select a range
0d6d521
Nested dirname calls can be replaced
GaryJones Oct 1, 2021
bf0e20b
Declare visibility for class-level constants
GaryJones Oct 1, 2021
7db2069
Convert documented param type to short form
GaryJones Oct 1, 2021
f5984d6
Fix discrepancy of class name and its use
GaryJones Oct 1, 2021
94931b3
Replace full qualified name with an import
GaryJones Oct 1, 2021
289b9f6
Inline one-time use variables
GaryJones Oct 1, 2021
c770a3e
Add return type declarations
GaryJones Oct 1, 2021
74b55ba
Remove incorrect return type declaration
GaryJones Oct 1, 2021
677d2cd
Fix typos and unnecessary abbreviations
GaryJones Oct 1, 2021
f5159e1
Remove unnecessary regular expression escaping
GaryJones Oct 1, 2021
580ffa2
Regexp: Use character class
GaryJones Oct 1, 2021
1634cab
Use const syntax instead of define()
GaryJones Oct 1, 2021
c8be344
Fix CS alignments
GaryJones Oct 1, 2021
3e5e9b2
Merge pull request #431 from Parsely/feature/minor-code-fixes
GaryJones Oct 4, 2021
bb6d44b
Tests: Stop using deprecated setMethods method (#427)
GaryJones Oct 5, 2021
1c02564
Displaying Open on Parse.ly links by default (#433)
pauarge Oct 6, 2021
986f792
Remove deprecated filter after_set_parsely_page (#436)
pauarge Oct 6, 2021
67378b7
Remove deprecated filter parsely_filter_insert_javascript (#437)
pauarge Oct 6, 2021
34e4ccb
Fixing some code smells (#435)
pauarge Oct 7, 2021
ff9d8a9
Adding E2E test to check for available recommended widget (#434)
pauarge Oct 7, 2021
66f00ec
Fix not working readme code sample (#439)
pauarge Oct 8, 2021
1982ba7
Update defaults in `get_bottom_level_term` to empty array to prevent …
mchanDev Oct 9, 2021
4fcaa2a
Removing old init script (#441)
pauarge Oct 10, 2021
9c2a578
Add wp_parsely_should_insert_metadata filter (#440)
pauarge Oct 10, 2021
5dd3514
Adding uninstall script (#444)
pauarge Oct 12, 2021
f700269
Bump @wordpress/e2e-test-utils from 5.4.3 to 5.4.4 (#449)
dependabot[bot] Oct 13, 2021
51a0dfd
Bump @wordpress/scripts from 18.0.1 to 18.1.0 (#450)
dependabot[bot] Oct 13, 2021
9e03c08
Constant return type on insert_parsely_page (#443)
pauarge Oct 13, 2021
d93f7b6
Fixing return types of update_metadata_endpoint (#446)
pauarge Oct 13, 2021
acfce95
Change get_current_url default type to non-post (#447)
pauarge Oct 13, 2021
9931b2a
Create codeql-analysis.yml (#453)
GaryJones Oct 15, 2021
928b492
Add namespaces to files (#430)
GaryJones Oct 16, 2021
bd9e0be
Bring develop up to date with 2.6.1 (#454)
pauarge Oct 18, 2021
9edf85e
Removing empty functions (#456)
pauarge Oct 18, 2021
a137e29
Enqueue scripts with theme independent hook (#458)
pauarge Oct 20, 2021
6b82cd2
Move Parse.ly settings to views folder (#459)
pauarge Oct 20, 2021
ad4da06
Removing Parse.ly load text domain (#457)
pauarge Oct 20, 2021
5341aad
i18n: Fix JS string translation
GaryJones Oct 20, 2021
abada19
Adding argument types to functions (#455)
pauarge Oct 21, 2021
37f36cf
Adding translation support for Yes and No fields (#463)
pauarge Oct 22, 2021
64cc83c
Adding labels to admin settings form (#464)
pauarge Oct 22, 2021
3eb53c6
Bump @wordpress/e2e-test-utils from 5.4.4 to 5.4.5 (#466)
dependabot[bot] Oct 25, 2021
b5fa065
Bump @wordpress/scripts from 18.1.0 to 19.0.0 (#465)
dependabot[bot] Oct 25, 2021
e99b342
Removing code coverage annotations (#469)
pauarge Oct 27, 2021
ec13ff4
Removing upgrade README notice (#470)
pauarge Oct 27, 2021
44dc939
Extract settings page from Parsely class (#467)
pauarge Nov 1, 2021
2a5cf57
Fix type errors (#474)
pauarge Nov 1, 2021
b3948b7
Adding namespace to Recommended Widget (#475)
pauarge Nov 1, 2021
b97486d
Adding filter to display Cloudflare links (#473)
pauarge Nov 2, 2021
f75dfa4
Avoid making duplicate calls on Recommended Widget (#460)
pauarge Nov 2, 2021
6573cc3
Extract admin warning from class-parsely (#468)
pauarge Nov 2, 2021
9774d6e
e2e tests: fix watch command (#476)
GaryJones Nov 4, 2021
26b3922
Adding namespace to root class (#477)
pauarge Nov 4, 2021
9ce0853
Bump @wordpress/scripts from 19.0.0 to 19.1.0 (#480)
dependabot[bot] Nov 8, 2021
3d01b2e
Bump @wordpress/e2e-test-utils from 5.4.5 to 5.4.6 (#479)
dependabot[bot] Nov 8, 2021
eaca690
Bump @wordpress/e2e-test-utils from 5.4.6 to 5.4.7 (#488)
dependabot[bot] Nov 12, 2021
3e7ac01
Starting with REST API
pauarge Nov 12, 2021
b806604
Returning metadata on REST
pauarge Nov 12, 2021
85ad815
Merge branch 'develop' into add/decoupled
pauarge Nov 12, 2021
e6a4d92
Adding testing class
pauarge Nov 12, 2021
28c494a
Test rest_api_init
pauarge Nov 12, 2021
01a0ee6
Adding filter to disable REST API support
pauarge Nov 12, 2021
1a4bada
Use checkboxes for multiple selects in settings page (#482)
pauarge Nov 12, 2021
c8e9ae2
Move tracker logic to separate file (#478)
pauarge Nov 12, 2021
5ffdd2a
Bump @wordpress/eslint-plugin from 9.2.0 to 9.3.0 (#490)
dependabot[bot] Nov 16, 2021
33f9310
Bump @wordpress/e2e-test-utils from 5.4.7 to 5.4.8 (#492)
dependabot[bot] Nov 16, 2021
6e4d4a1
Bump @wordpress/scripts from 19.1.0 to 19.2.1 (#491)
dependabot[bot] Nov 16, 2021
47a1437
Merge branch 'develop' into add/decoupled
pauarge Nov 16, 2021
ce7ac51
Adding registration test
pauarge Nov 17, 2021
545a0f8
Check for get_callback function
pauarge Nov 17, 2021
1fd2119
Checking other functions are not defined
pauarge Nov 17, 2021
226fc75
Renaming functions on Scripts class (#481)
pauarge Nov 17, 2021
c778984
Adding a cannonical way of running the plugin locally (#493)
pauarge Nov 17, 2021
3b0984b
Merge branch 'develop' into add/decoupled
pauarge Nov 18, 2021
0f0869c
Making class members private (#486)
pauarge Nov 18, 2021
0d94b6b
Merge branch 'develop' into add/decoupled
pauarge Nov 18, 2021
d869bee
Adding changelog for 3.0.0 (#495)
pauarge Nov 18, 2021
54a86cf
Merge branch 'develop' into add/decoupled
pauarge Nov 22, 2021
4763fcb
Adding explicit return type on parsely meta
pauarge Nov 22, 2021
6fe0db7
Starting register parsely meta json string
pauarge Nov 22, 2021
49468d1
Renaming field
pauarge Nov 23, 2021
9883afa
Registering field to page
pauarge Nov 23, 2021
f1828f0
Adding additional filter to disable feature
pauarge Nov 23, 2021
7a398f4
Fix typo
pauarge Nov 23, 2021
ba785b8
Fix linting issues
pauarge Nov 23, 2021
0917d16
Add data provider to test
pauarge Nov 24, 2021
7b46bcf
Fix provider test
pauarge Nov 24, 2021
b5bf5fe
Remove unnecessary npm step in e2e (#494)
pauarge Nov 25, 2021
94f5fdc
Only running NodeJS checks with latest version (#499)
pauarge Nov 25, 2021
9e62159
Checking for updates in GitHub Actions (#498)
pauarge Nov 25, 2021
63faf86
Merge branch 'develop' into add/decoupled-fields
pauarge Nov 25, 2021
a03e81d
Merging trunk to develop. (#505)
pauarge Nov 25, 2021
afae6d0
Changelog: Add more detail for 3.0 release (#506)
GaryJones Nov 25, 2021
72c406e
Adding types to function arguments in GetCurrentUrlTest (#504)
pauarge Nov 26, 2021
93c5187
Settings page: Use submit_button() function (#513)
GaryJones Nov 28, 2021
ca5dff8
Docs: Minor amendments (#514)
GaryJones Nov 28, 2021
b7a2e82
Removing version leak in front-end (#502)
pauarge Nov 28, 2021
938dae0
Tests: Run in random order (#511)
GaryJones Nov 28, 2021
2f3a56c
PR Template: Remove checkboxes (#512)
GaryJones Nov 28, 2021
208432a
Remove settings page custom CSS
pauarge Nov 18, 2021
150771e
Merge pull request #496 from Parsely/remove/custom-version-css
GaryJones Nov 28, 2021
4dff85f
Bump @wordpress/scripts from 19.2.1 to 19.2.2 (#503)
dependabot[bot] Nov 29, 2021
c68cd65
Bump prettier from 2.4.1 to 2.5.0 (#509)
dependabot[bot] Nov 29, 2021
62a0afd
Fixing end to end tests in CI (#521)
pauarge Nov 29, 2021
3ec0e50
Removing PHP 8.2 from CI (#523)
pauarge Nov 29, 2021
6aefc05
Merge branch 'develop' into add/decoupled-fields
pauarge Nov 29, 2021
8ae1985
Merge branch 'trunk' into develop
pauarge Nov 29, 2021
a6245bc
Restoring settings file
pauarge Nov 29, 2021
a2d0e74
Merge branch 'develop' into add/decoupled-fields
pauarge Nov 29, 2021
640bc49
Removing custom E2E Docker image (#524)
pauarge Nov 30, 2021
775686c
Adding explicit dependabot reviewers (#526)
pauarge Dec 1, 2021
525cea3
Adding instructions for local development on README files (#525)
pauarge Dec 1, 2021
992edfe
Adding E2E test to verify if scripts are rendered in FE (#528)
pauarge Dec 2, 2021
232ae89
Enabling linting for JS and CSS files (#527)
pauarge Dec 3, 2021
961a365
Upgrading Ubuntu CI to 20.04 (#445)
pauarge Dec 3, 2021
31689da
Merge branch 'develop' into add/decoupled-fields
pauarge Dec 3, 2021
77b09cb
Bump prettier from 2.5.0 to 2.5.1 (#529)
dependabot[bot] Dec 9, 2021
6f5b641
Bump @wordpress/e2e-test-utils from 5.4.8 to 5.4.9 (#530)
dependabot[bot] Dec 9, 2021
53fbe5f
Settings Page UI improvements (#518)
GaryJones Dec 9, 2021
384604e
Settings: Hide Disable AMP setting if not needed (#519)
GaryJones Dec 10, 2021
d51ba26
Merge branch 'develop' into add/decoupled-fields
pauarge Dec 13, 2021
b9e40aa
Adding dev-env logs command (#532)
pauarge Dec 13, 2021
e2f1d7a
Bump @wordpress/e2e-test-utils from 5.4.9 to 5.4.10 (#534)
dependabot[bot] Dec 14, 2021
315e41e
docs: Fix typo in example for PHP code standard (#537)
jblz Dec 14, 2021
90cbec7
Update package-lock.json -- tabs vs. spaces (#539)
jblz Dec 14, 2021
a1d3f25
Set up husky
jblz Dec 14, 2021
8d6e6de
new npm script: lint -- calls all lint tasks concurrently
jblz Dec 14, 2021
1dc20fe
whitespace fix
jblz Dec 14, 2021
f59ca88
Add a pre-commit lint check
jblz Dec 14, 2021
a148e44
Add a pre-commit lint check
jblz Dec 14, 2021
537ca73
Add an npm script for 'composer lint' included in 'npm run lint' wrapper
jblz Dec 14, 2021
8bf2abd
Only check for phpcs errors -- permit warnings
jblz Dec 14, 2021
c333584
Still show phpcs warnings, but return 0 & allow the commit
jblz Dec 14, 2021
c6e5912
include updated package-lock.json
jblz Dec 14, 2021
f3ab2d0
fix npm script alphabetized order
jblz Dec 15, 2021
180aa1c
Fix Undefined index in class-settings-page.php (#536)
acicovic Dec 15, 2021
7bb315a
Merge branch 'develop' into add-husky-hooks
pauarge Dec 15, 2021
39f5424
Settings page: Show error message when duplicate tracking selected
acicovic Dec 15, 2021
a8f0fb6
Add comment to make code block purpose clearer
acicovic Dec 15, 2021
7683e11
Bring Develop up to date with 3.0.0 release (#542)
pauarge Dec 15, 2021
8fbf9ec
Source the correct asset meta data file for the Recommendations Widge…
jblz Dec 15, 2021
64b9a8c
Merge pull request #545 from Parsely/fix-missing-import-widget
jblz Dec 15, 2021
3c294e1
Merge branch 'develop' into add-husky-hooks
jblz Dec 15, 2021
1db4a53
Include usage description ion CONTRIBUTING.md
jblz Dec 15, 2021
698967d
Re-allow phpcs warnings to block commits
jblz Dec 16, 2021
4015a08
strict comparison for in_array in class-scripts.php
jblz Dec 16, 2021
76714bc
ignore phpcs warnings in tests/Integration/ScriptsTest.php
jblz Dec 16, 2021
16f5de6
strict type comparison for in_array in src/class-parsely.php
jblz Dec 16, 2021
1ad550b
switch to rawurlencode in the settings mailto reprocess link
jblz Dec 16, 2021
5525b5a
phpcs --severity=1 in the pre-commit hook
jblz Dec 16, 2021
b9cf935
Merge pull request #538 from Parsely/add-husky-hooks
jblz Dec 16, 2021
7c372ca
Fix metadata on password protected posts (#547)
pauarge Dec 16, 2021
6e31654
Enforce phpcs severity=1 in CI
jblz Dec 16, 2021
32b16f8
Demo warning caught in CI that bypassed pre-commit check
jblz Dec 16, 2021
8eda1e8
Revert demo commit 32b16f8
jblz Dec 16, 2021
35afe95
Adding decoupled support (#489)
pauarge Dec 17, 2021
a9f103b
Bring develop up to date with 3.0.1 release (#550)
pauarge Dec 17, 2021
e065b58
Merge branch 'develop' into add/decoupled-fields
pauarge Dec 17, 2021
d95f7f1
Renaming field to rendered
pauarge Dec 17, 2021
6a4ea25
Adding filter
pauarge Dec 17, 2021
f6fbc9d
Adding rendered meta test
pauarge Dec 17, 2021
7fe5220
Adding repeated metas test
pauarge Dec 17, 2021
7113bf0
Removing line break
pauarge Dec 17, 2021
504fc6d
Rest: fix flawed tests
GaryJones Dec 18, 2021
d939749
REST: Add documentation
GaryJones Dec 19, 2021
2531f49
Bump concurrently from 6.4.0 to 6.5.1
dependabot[bot] Dec 20, 2021
e2bc26a
Mention duplicate post types in error message
acicovic Dec 20, 2021
e5e15d1
Include integration test with duplicate tracking detection
acicovic Dec 20, 2021
05a9055
Fix: don't save invalid tracking settings
acicovic Dec 20, 2021
9a99c6a
Fix and simplify settings page integration tests
acicovic Dec 20, 2021
b499e4b
Improve settings page texts
acicovic Dec 20, 2021
531943c
Implement code review suggestions
acicovic Dec 20, 2021
76be56c
Fix bad comparison code
acicovic Dec 20, 2021
b82fff7
Merge pull request #551 from Parsely/dependabot/npm_and_yarn/concurre…
jblz Dec 20, 2021
2bbfa0b
extend the severity=1 flag to the composer cs script
jblz Dec 20, 2021
d064583
Merge branch 'develop' into update/phpcs-severity-gh-action
jblz Dec 20, 2021
118030a
Merge branch 'develop' into update/improve-settings-page-texts
acicovic Dec 21, 2021
092301f
Merge pull request #552 from Parsely/update/improve-settings-page-texts
acicovic Dec 21, 2021
9e65e26
test_parsely_register_scripts(): Add comments and improve assertion …
acicovic Dec 22, 2021
35f75be
test_enqueue_js_tracker: Add comments and improve assertion messages
acicovic Dec 22, 2021
1f490cb
ScriptsTest.php: Remove output tests
acicovic Dec 23, 2021
ebb8a56
Group JS tracker tests together
acicovic Dec 23, 2021
16042ff
Rename @group insert-js to enqueue-js
acicovic Dec 23, 2021
21001ae
Tests: Add go_to_new_post() function to reduce code duplication
acicovic Dec 23, 2021
409bbcd
Fix typos
acicovic Dec 23, 2021
69f4c70
ScriptTests.php: Refactor and comment for clarity and code reuse
acicovic Dec 23, 2021
94e0575
ScriptsTest.php: Fix CS and linting errors
acicovic Dec 23, 2021
07b151d
Update assertion message for clarity
acicovic Dec 24, 2021
49bb636
Update function comment for clarity
acicovic Dec 24, 2021
a8b878b
CI: Add concurrency to CI configs
GaryJones Dec 24, 2021
d9c9d18
Add tracker enqueue test with disable_javascript option set to true
acicovic Dec 24, 2021
74f7877
CI: Composer tweaks
GaryJones Dec 24, 2021
2621daf
Composer: permit composer plugins
GaryJones Dec 24, 2021
145d395
Correct Parsely spelling in comments within tests
acicovic Dec 24, 2021
d8c1ffa
Merge pull request #561 from Parsely/fix/correct-parsely-spelling-in-…
acicovic Dec 24, 2021
3f03453
Merge branch 'develop' into fix/ci-improvements
GaryJones Dec 24, 2021
501a7e5
Merge pull request #559 from Parsely/fix/ci-improvements
GaryJones Dec 24, 2021
3efcf47
Include API script in test_do_not_track_logged_in_users()
acicovic Dec 24, 2021
ac5f17d
Improve assert_script_statuses() comments
acicovic Dec 27, 2021
00f5ebe
Move and rename test_enqueue_js_tracker_with_cloudflare() for clarity
acicovic Dec 27, 2021
d7c8e98
Include non-registered check in test_parsely_register_scripts()
acicovic Dec 27, 2021
9792996
Change @group enqueue-js to @group scripts
acicovic Dec 27, 2021
7aeb77b
Change function name for better Textdox conformity
acicovic Dec 28, 2021
9ce9ae5
Mark assert_script_statuses() as risky when no assertions get passed …
acicovic Dec 28, 2021
a4c125f
Merge branch 'try/improve-scripts-test' of https://github.com/Parsely…
acicovic Dec 28, 2021
9f620b1
Merge branch 'develop' into update/phpcs-severity-gh-action
jblz Dec 30, 2021
46dcdca
Use composer cs script in CI instead of calling phpcs directly
jblz Dec 30, 2021
fa55bb5
Merge branch 'develop' into add/decoupled-fields
jblz Dec 30, 2021
cad9012
Update README.md
GaryJones Jan 1, 2022
162d49d
Update src/class-rest.php
GaryJones Jan 1, 2022
1b89753
Merge pull request #549 from Parsely/update/phpcs-severity-gh-action
GaryJones Jan 1, 2022
d84d763
Merge branch 'develop' into add/decoupled-fields
jblz Jan 2, 2022
d27393a
Merge pull request #500 from Parsely/add/decoupled-fields
jblz Jan 2, 2022
e53dfee
Merge branch 'develop' into add/settings-page-duplicate-tracking-vali…
pauarge Jan 2, 2022
56fd24d
Bump concurrently from 6.5.1 to 7.0.0 (#566)
dependabot[bot] Jan 3, 2022
b7b3e90
Merge branch 'develop' into add/settings-page-duplicate-tracking-vali…
pauarge Jan 3, 2022
7699aa2
Merge branch 'develop' into try/improve-scripts-test
acicovic Jan 3, 2022
765b190
Improve script integration tests
acicovic Jan 3, 2022
ca8bd9a
SettingsPageTest: Add expected values first in assertions
acicovic Jan 3, 2022
5c806a0
SettingsPageTest: Move validate_options() calls for readability
acicovic Jan 3, 2022
9ab4084
Merge branch 'develop' into add/settings-page-duplicate-tracking-vali…
pauarge Jan 3, 2022
02adab0
SettingsPageTest: Put every assertion in its own test
acicovic Jan 3, 2022
7ae97fc
Merge branch 'add/settings-page-duplicate-tracking-validation' of htt…
acicovic Jan 3, 2022
5b30702
SettingsPageTest: Fix incorrect class comment
acicovic Jan 3, 2022
9f30178
Updating release process guidelines (#567)
pauarge Jan 3, 2022
43d113e
Resolve #558 (Last Modified date is wrong in the json+ld) (#560)
acicovic Jan 3, 2022
da32eb3
Merge branch 'develop' into add/settings-page-duplicate-tracking-vali…
acicovic Jan 4, 2022
b667f6f
Settings page: Show error message when duplicate tracking selected
acicovic Jan 4, 2022
4f54736
Update wordpress.org screenshots for settings page (#574)
acicovic Jan 5, 2022
a36f123
Pull 3.0.2 Changelog into develop (#579)
jblz Jan 5, 2022
2ab02a1
Add wordpress.org banners
acicovic Jan 6, 2022
f536ee6
Add wordpress.org banner images
acicovic Jan 6, 2022
2c4b3c8
Fix fatal TypeError in get_categories function (#591)
pauarge Jan 12, 2022
5dd7373
Moving plugin loading to named functions (#595)
pauarge Jan 14, 2022
7a2824c
Recommended Widget: Remove private migrate_old_fields fn (#599)
jblz Jan 15, 2022
36d19a5
Bump @wordpress/scripts from 19.2.2 to 19.2.3 (#603)
dependabot[bot] Jan 18, 2022
e54b25b
Adding PHPStan to perform static analysis (#590)
pauarge Jan 18, 2022
4121bb9
Adding Parse.ly stats button on admin bar (#569)
pauarge Jan 19, 2022
c20eefa
Bring develop up to date with 3.0.4 (#604)
pauarge Jan 20, 2022
d45724d
Backport TypeError Fixes from VIP (#607)
jblz Jan 20, 2022
a1e258c
Merge branch 'trunk' into release-3.1.0
pauarge Jan 20, 2022
bd3f77d
Adding CHANGELOG
pauarge Jan 20, 2022
16830af
Revert tabulation
pauarge Jan 20, 2022
1cd294d
Updating version number
pauarge Jan 20, 2022
079ec94
Revert changes on CHANGELOG.md
pauarge Jan 20, 2022
585a183
Updating CHANGELOG link
pauarge Jan 20, 2022
d27ea7e
Update CHANGELOG.md
pauarge Jan 20, 2022
202fe98
Update CONTRIBUTING.md
pauarge Jan 20, 2022
ead7603
Update README.md
pauarge Jan 20, 2022
1645399
Update CHANGELOG.md
pauarge Jan 20, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,9 @@
},
"rules": {
"@wordpress/i18n-text-domain": [ "error", { "allowedTextDomain": [ "wp-parsely" ] } ]
},
"globals": {
// Page variable for Puppeteer tests
"page": true
}
}
12 changes: 8 additions & 4 deletions .github/ISSUE_TEMPLATE/release-template.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,17 @@ labels: 'Type: Maintenance'

PR for tracking changes for the X.Y.Z release. Target release date: DOW DD MMMM YYYY.

- [ ] Merge any outstanding PRs due for this release.
- [ ] Add/Update changelog for this release: PR #XXX
- [ ] Add commit/PR which increases version numbers in the README, plugin bootstrap file, and in the `test_class_version` test in `tests/class-all-test.php`.
- [ ] Merge any outstanding PRs due for this release to `develop`.
- [ ] Notify stakeholders of an upcoming release.
- [ ] Add [PR](https://github.com/Parsely/wp-parsely/pull/XXX) against `develop` which:
- Increases version numbers in the README, plugin bootstrap file `wp-parsely.php`, and `package.json`.
- Adds or updates the changelog for the release.
- [ ] Merge this PR.
- [ ] Add signed release tag against `trunk`.
- [ ] Create a branch from `trunk` named `release-x.y.z`. Merge `develop` into that branch. Open a PR from `release-x.y.z` to `trunk` named _Release x.y.z_.
- [ ] Add signed release tag against `trunk` using GitHub's UI.
- [ ] Close the current milestone.
- [ ] Open a new milestone for the next release.
- [ ] If any open PRs/issues which were milestoned for this release do not make it into the release, update their milestone.
- [ ] Sync changes from `trunk` to `develop`. Update versions in `develop` to be `x.y.z-alpha` (where `x.y.z` is the next milestone).
- [ ] Write a Lobby post.
- [ ] Write an internal P2 post.
4 changes: 4 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,15 @@ updates:
interval: 'daily'

- package-ecosystem: 'composer'
reviewers:
- 'Parsely/wp-parsely'
directory: '/'
schedule:
interval: 'daily'

- package-ecosystem: 'github-actions'
reviewers:
- 'Parsely/wp-parsely'
directory: '/'
schedule:
interval: 'daily'
8 changes: 1 addition & 7 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,4 @@
<!--- Include details of your testing environment, and the tests you ran to -->
<!--- see how your change affects other areas of the code, etc. -->

## Screenshots (if appropriate):

## Types of changes
<!--- What types of changes does your code introduce? Put an `x` in all the boxes that apply: -->
- [ ] Bug fix (non-breaking change which fixes an issue)
- [ ] New feature (non-breaking change which adds functionality)
- [ ] Breaking change (fix or feature that would cause existing functionality to change)
## Screenshots (if appropriate)
8 changes: 7 additions & 1 deletion .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,16 @@ on:
schedule:
- cron: '27 20 * * 2'

# Cancels all previous workflow runs for the same branch that have not yet completed.
concurrency:
# The concurrency group contains the workflow name and the branch name.
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
analyze:
name: Analyze
runs-on: ubuntu-latest
runs-on: ubuntu-20.04
permissions:
actions: read
contents: read
Expand Down
16 changes: 11 additions & 5 deletions .github/workflows/cs-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,16 @@ on:
# Allow manually triggering the workflow.
workflow_dispatch:

# Cancels all previous workflow runs for the same branch that have not yet completed.
concurrency:
# The concurrency group contains the workflow name and the branch name.
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
checkcs:
name: 'Basic CS and QA checks'
runs-on: ubuntu-latest
runs-on: ubuntu-20.04

env:
XMLLINT_INDENT: ' '
Expand Down Expand Up @@ -42,16 +48,16 @@ jobs:
# Validate the composer.json file.
# @link https://getcomposer.org/doc/03-cli.md#validate
- name: Validate Composer installation
run: composer validate --no-check-all --strict
run: composer validate --no-check-all --strict --no-interaction

# Install dependencies and handle caching in one go.
# @link https://github.com/marketplace/actions/install-composer-dependencies
- name: Install Composer dependencies
uses: ramsey/composer-install@v1
uses: ramsey/composer-install@v2

# Lint PHP.
- name: Lint PHP against parse errors
run: composer lint-ci | cs2pr
run: composer lint-ci --no-interaction | cs2pr

# Needed as runs-on: system doesn't have xml-lint by default.
# @link https://github.com/marketplace/actions/xml-lint
Expand All @@ -69,7 +75,7 @@ jobs:

# Check the code-style consistency of the PHP files.
- name: Check PHP code style
run: vendor/bin/phpcs --report-full --report-checkstyle=./phpcs-report.xml
run: composer cs -- --report-full --report-checkstyle=./phpcs-report.xml

- name: Show PHPCS results in PR
run: cs2pr ./phpcs-report.xml
2 changes: 1 addition & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on:
jobs:
tag:
name: New tag
runs-on: ubuntu-latest
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- name: Build # Remove or modify this step as needed
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/e2e-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ concurrency:
jobs:
test:
name: e2e against WordPress latest
runs-on: ubuntu-latest
runs-on: ubuntu-20.04

steps:
- name: Checkout code
Expand Down
45 changes: 25 additions & 20 deletions .github/workflows/integration-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,17 @@ on:
paths-ignore:
- '**.md'
pull_request:
# Allow manually triggering the workflow.
workflow_dispatch:

# Cancels all previous workflow runs for the same branch that have not yet completed.
concurrency:
# The concurrency group contains the workflow name and the branch name.
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
test:
name: PHP ${{ matrix.php }}
# ubuntu-20.04 / ubuntu-latest includes MySQL 8, which has issues with PHP < 7.4. Has PHP 7.4-8.0
# ubuntu-18.04 includes PHP versions 7.1-8.0.
# See https://setup-php.com/i/452
runs-on: ubuntu-18.04
runs-on: ubuntu-20.04

env:
WP_VERSION: latest
Expand Down Expand Up @@ -45,9 +46,9 @@ jobs:
- php: '8.1'
coverage: none
experimental: false
- php: '8.2'
coverage: none
experimental: true
# - php: '8.2'
# coverage: none
# experimental: true
fail-fast: false
continue-on-error: ${{ matrix.experimental }}
steps:
Expand All @@ -68,25 +69,29 @@ jobs:
- name: Setup Problem Matchers for PHPUnit
run: echo "::add-matcher::${{ runner.tool_cache }}/phpunit.json"

- name: Install Composer dependencies for PHP < 8.2
if: ${{ matrix.php < 8.2 }}
uses: ramsey/composer-install@v1
- name: Install Composer dependencies
uses: ramsey/composer-install@v2

- name: Install Composer dependencies for PHP >= 8.2
if: ${{ matrix.php >= 8.2 }}
uses: ramsey/composer-install@v1
with:
composer-options: --ignore-platform-reqs
# - name: Install Composer dependencies for PHP >= 8.2
# if: ${{ matrix.php >= 8.2 }}
# uses: ramsey/composer-install@v2
# with:
# composer-options: --ignore-platform-reqs

- name: Start MySQL Service
run: sudo systemctl start mysql.service

- name: Setting mysql_native_password for PHP <= 7.3
if: ${{ matrix.php <= 7.3 }}
run: mysql -u root -proot -e "ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY 'root';"

- name: Prepare environment for integration tests
run: composer prepare-ci
run: composer prepare-ci --no-interaction

- name: Run integration tests (single site)
if: ${{ matrix.php != 8.0 }}
run: composer testwp
run: composer testwp --no-interaction

- name: Run integration tests (multisite site with code coverage)
if: ${{ matrix.php == 8.0 }}
run: composer coveragewp-ci
run: composer coveragewp-ci --no-interaction
17 changes: 16 additions & 1 deletion .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,15 @@ on:
- '**/*[tj]sx?'
- package*.json

# Cancels all previous workflow runs for the same branch that have not yet completed.
concurrency:
# The concurrency group contains the workflow name and the branch name.
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
build:
runs-on: ubuntu-latest
runs-on: ubuntu-20.04

strategy:
matrix:
Expand All @@ -31,6 +37,15 @@ jobs:
- name: Install JavaScript dependencies
run: npm ci

- name: Lint CSS code
run: npm run lint:css

- name: Lint package.json file
run: npm run lint:pkg-json

- name: Lint JS code
run: npm run lint:js

- name: Build application
run: npm run build

Expand Down
17 changes: 10 additions & 7 deletions .github/workflows/unit-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,16 @@ on:
# Allow manually triggering the workflow.
workflow_dispatch:

# Cancels all previous workflow runs for the same branch that have not yet completed.
concurrency:
# The concurrency group contains the workflow name and the branch name.
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
test:
name: PHP ${{ matrix.php }}
# ubuntu-20.04 / ubuntu-latest includes MySQL 8, which has issues with PHP < 7.4. Has PHP 7.4-8.0
# ubuntu-18.04 includes PHP versions 7.1-8.0.
# See https://setup-php.com/i/452
runs-on: ubuntu-18.04
runs-on: ubuntu-20.04

env:
WP_VERSION: latest
Expand Down Expand Up @@ -70,13 +73,13 @@ jobs:

- name: Install Composer dependencies for PHP < 8.2
if: ${{ matrix.php < 8.2 }}
uses: ramsey/composer-install@v1
uses: ramsey/composer-install@v2

- name: Install Composer dependencies for PHP >= 8.2
if: ${{ matrix.php >= 8.2 }}
uses: ramsey/composer-install@v1
uses: ramsey/composer-install@v2
with:
composer-options: --ignore-platform-reqs

- name: Run unit tests
run: composer test
run: composer test --no-interaction
5 changes: 5 additions & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

npm run lint
composer cs
Binary file added .wordpress-org/banner-1544x500.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added .wordpress-org/banner-772x250.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified .wordpress-org/screenshot-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified .wordpress-org/screenshot-2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified .wordpress-org/screenshot-3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added .wordpress-org/screenshot-4.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added .wordpress-org/screenshot-5.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
57 changes: 57 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,62 @@ 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).

## [3.1.0] 2022-01-21

The 3.1.0 release is a minor release for the plugin that does not introduce any breaking changes coming from the 3.0 branch. This version's primary focus is adding support for WordPress decoupled architectures and a revamped settings page. We have also worked hard on refining our code, testing, and delivery process.

The Parse.ly plugin now hooks into the WordPress REST API to provide content metadata in a format that's easy for a variety of client applications to consume. A `parsely` field containing the metadata is now rendered in the tracked objects (e.g., `post` and `page`). No new endpoint is introduced. This behavior can be disabled using a filter. Please refer to the plugin's README file for more details. Note that the tracking script must still be inserted manually in the decoupled front-end or otherwise loaded for your site.

### Added

- Decoupled support. [#489](https://github.com/Parsely/wp-parsely/pull/489) [#500](https://github.com/Parsely/wp-parsely/pull/500)
- Revamped wp-admin settings page, divided in sections. [#518](https://github.com/Parsely/wp-parsely/pull/518)
- Parse.ly stats button on admin bar. [#569](https://github.com/Parsely/wp-parsely/pull/569)
- Show error in settings page when duplicated tracking is selected. [#543](https://github.com/Parsely/wp-parsely/pull/543)
- Instructions for local development. [#525](https://github.com/Parsely/wp-parsely/pull/525)
- Local developer environment logs command. [#532](https://github.com/Parsely/wp-parsely/pull/532)
- Husky-based git commit hooks to enforce linting rules prior to commit. [#538](https://github.com/Parsely/wp-parsely/pull/538)
- Linting for JavaScript and CSS files. [#527](https://github.com/Parsely/wp-parsely/pull/527)
- Types to function arguments in GetCurrentUrlTest. [#504](https://github.com/Parsely/wp-parsely/pull/504)
- End-to-end test to verify if scripts are rendered in the front-end. [#528](https://github.com/Parsely/wp-parsely/pull/528)
- Concurrency to CI configuration and Composer tweaks. [#559](https://github.com/Parsely/wp-parsely/pull/559)
- Explicit dependabot reviewers on GitHub. [#526](https://github.com/Parsely/wp-parsely/pull/526)
- WordPress.org banner images. [#581](https://github.com/Parsely/wp-parsely/pull/581)
- PHPStan static analysis tool. [#590](https://github.com/Parsely/wp-parsely/pull/590)

### Changed

- Hiding _Disable AMP_ field on settings page when the AMP plugin is not enabled. [#519](https://github.com/Parsely/wp-parsely/pull/519)
- Use built-in WordPress submit button instead of custom one in the settings page. [#513](https://github.com/Parsely/wp-parsely/pull/513)
- Improved wp-admin settings page help texts. [#552](https://github.com/Parsely/wp-parsely/pull/552)
- `@wordpress/scripts` bumped from 19.2.1 to 19.2.3. [#503](https://github.com/Parsely/wp-parsely/pull/503) [#603](https://github.com/Parsely/wp-parsely/pull/603)
- `prettier` bumped from 2.4.1 to 2.5.0. [#509](https://github.com/Parsely/wp-parsely/pull/509)
- `concurrently` bumped from 6.4.0 to 6.5.1. [#551](https://github.com/Parsely/wp-parsely/pull/551)
- Ubuntu bumped from 18.04 to 20.04 on CI tests. [#445](https://github.com/Parsely/wp-parsely/pull/445)
- Unit and Integration tests run in random order. [#511](https://github.com/Parsely/wp-parsely/pull/511)
- Correct Parse.ly spelling in tests comments. [#561](https://github.com/Parsely/wp-parsely/pull/561)
- Minor amendments on the documentation. [#514](https://github.com/Parsely/wp-parsely/pull/514)
- Updated release process guidelines. [#567](https://github.com/Parsely/wp-parsely/pull/567)
- Removed checkboxes from GitHub's PR template. [#512](https://github.com/Parsely/wp-parsely/pull/512)
- Improved JS scripts integration tests. [#557](https://github.com/Parsely/wp-parsely/pull/557)
- Source code linting violations (PHPCS with `--serverity=1`). [#544](https://github.com/Parsely/wp-parsely/pull/544)
- WordPress.org screenshots for settings page. [#574](https://github.com/Parsely/wp-parsely/pull/574)

### Fixed

- Incorrect type errors. [#607](https://github.com/Parsely/wp-parsely/pull/607)
- Undefined index error on settings page. [#536](https://github.com/Parsely/wp-parsely/pull/536)
- Source the correct asset for the Recommendations Widget. [#545](https://github.com/Parsely/wp-parsely/pull/545)
- End-to-end tests in CI (GitHub Actions). [#521](https://github.com/Parsely/wp-parsely/pull/521)

### Removed

- Plugin version number being printed in front-end's HTML source code. [#502](https://github.com/Parsely/wp-parsely/pull/502)
- Custom CSS on wp-admin settings page. [#496](https://github.com/Parsely/wp-parsely/pull/496)
- `migrate_old_fields` private function from Recommended Widget. [#599](https://github.com/Parsely/wp-parsely/pull/599)
- PHP 8.2 from CI tests. [#523](https://github.com/Parsely/wp-parsely/pull/523)
- Custom end-to-end Docker image. [#524] (https://github.com/Parsely/wp-parsely/pull/524)

## [3.0.4] - 2022-01-17

### Changed
Expand Down Expand Up @@ -446,6 +502,7 @@ If you are using the plugin without any code-level customizations (for instance,
- Initial version.
- Add support for parsely-page and JavaScript on home page and published pages and posts as well as archive pages (date/author/category/tag).

[3.1.0]: https://github.com/Parsely/wp-parsely/compare/3.0.4...3.1.0
[3.0.4]: https://github.com/Parsely/wp-parsely/compare/3.0.3...3.0.4
[3.0.3]: https://github.com/Parsely/wp-parsely/compare/3.0.2...3.0.3
[3.0.2]: https://github.com/Parsely/wp-parsely/compare/3.0.1...3.0.2
Expand Down
Loading