Skip to content

Commit

Permalink
Merge branch 'release/5.0.0-beta.1' into v5
Browse files Browse the repository at this point in the history
  • Loading branch information
khalwat committed Feb 9, 2024
2 parents b1330f1 + c7b9d74 commit 3b3167c
Show file tree
Hide file tree
Showing 11 changed files with 29 additions and 288 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build-and-deploy-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@ env:
on:
push:
branches:
- v4
- v5
paths:
- 'docs/**'
pull_request:
branches:
- v4
- v5
paths:
- 'docs/**'
workflow_dispatch:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/code-analysis.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on:
pull_request: null
push:
branches:
- develop-v4
- develop-v5
workflow_dispatch:
permissions:
contents: read
Expand Down
265 changes: 2 additions & 263 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,266 +1,5 @@
# Webperf Changelog

## 4.0.1 - UNRELEASED
## 5.0.0-beta.1 - 2024.02.08
### Added
* Add `phpstan` and `ecs` code linting
* Add `code-analysis.yaml` GitHub action

### Changed
* Switch over to Vite `^5.0.0` & Node `^20.0.0` for the buildchain
* Move to using `ServicesTrait` and add getter methods for services
* Add `allow-plugins` for CI
* Update the Test on Google PageSpeed Insights URL to `pagespeed.web.dev`
* Clean up search bar CSS
* Updated docs to use node 20 & a new sitemap plugin
* ECS code cleanup

### Fixed
* Ensure that `$driver` is nullable in the install migration
* Update to Boomerang Loader Snippet version 15 to modernize the loader, and eliminage `document.write` warnings
* Fix the sidebar CSS so the radial bar chart is not cropped, and there is padding around the text labels ([#51](https://github.com/nystudio107/craft-webperf/issues/51))

## 4.0.0 - 2022.06.23
### Added
* Initial Craft CMS 4 release

### Changed
* Removed the sub resource integrity on the built JavaScript, which could fail if systems were set up that manipulated the incoming JavaScript resources dynamically

## 4.0.0-beta.3 - 2022.03.18

### Fixed

* Fix registering permissions ([#352](https://github.com/craftcms/docs/issues/352))

## 4.0.0-beta.2 - 2022.03.04

### Fixed

* Updated types for Craft CMS `4.0.0-alpha.1` via Rector

## 4.0.0-beta.1 - 2022.02.27

### Added

* Initial Craft CMS 4 compatibility

## 1.0.27 - 2022.01.12

### Added

* Add `.gitattributes` & `CODEOWNERS`
* Add linting to build
* Add compression of assets
* Add bundle visualizer

## 1.0.26 - 2022.01.04

### Changed

* Updated the buildchain to use Node 16
* Changed buildchain to Vite from webpack 5

## 1.0.25 - 2021.07.17

### Changed

* Switched documentation system to VitePress

### Fixed

* Fixed an issue where an exception could be thrown in Craft CMS 3.7.x if no `element` existed when rendering the
sidebar (https://github.com/nystudio107/craft-webperf/issues/38)

## 1.0.24 - 2021.04.06

### Added

* Added `make update` to update NPM packages
* Added `make update-clean` to completely remove `node_modules/`, then update NPM packages

### Changed

* Use Tailwind CSS `^2.1.0` with JIT

## 1.0.23 - 2021.04.01

### Changed

* More consistent `makefile` build commands
* Use Tailwind 2.x & `@tailwindcss/jit`
* Move settings from the `composer.json` “extra” to the plugin main class
* Move the manifest service registration to the constructor
* Fix the broken Vue data tables

## 1.0.22 - 2021.03.03

### Changed

* Dockerized the buildchain, using `craft-plugin-manifest` for the webpack HMR bridge

## 1.0.21 - 2021.02.24

### Added

* Added support for both 8.x and 9.x versions of `league/csv` for peer compatibility

### Changed

* Updated build system infra

## 1.0.20 - 2021.02.09

### Changed

* Updated Axios to `^0.21.1`

### Fixed

* Fixed an incompatibility with PHP 8 caused by trait aliases not being fully qualified

## 1.0.19 - 2020.12.09

### Changed

* Moved the CSS/JS buildchain over to webpack 5
* Updated to latest npm deps

## 1.0.18 - 2020.03.11

### Fixed

* Fixed an issue where outlier samples were not being properly trimmed due to the computed threshold being non-integral

## 1.0.17 - 2019.12.11

### Security

* Throw an exception if an invalid sort field is passed into the controller methods, to eliminate a low-impact SQL
injection vulnerability

## 1.0.16 - 2019.12.09

### Changed

* Updated to the latest datepicker package

### Fixed

* Fixed a low-impact SQL injection vulnerability
* Fixed an issue where Webperf was erroneously showing "0 data samples" on the Dashboard

## 1.0.15 - 2019.11.19

### Changed

* Updated packages as per `npm audit fix`

## 1.0.14 - 2019.09.09

### Changed

* Replaced frontend api route with an actionUrl()

## 1.0.13 - 2018.08.07

### Changed

* Updated assets build to update to the latest npm packages
* Fixed a `bootstrap` error when viewing entries with Webperf sidebar is visible

## 1.0.12 - 2018.06.25

### Changed

* Fixed an issue where an error could be thrown rendering the Webperf Twig template if the title contained characters
that need escaping in a JavaScript context
* Added the frontend routes for `/retour` and `/seomatic/` to the default exclusion list
* Added database indexes to improve performance

## 1.0.11 - 2018.06.05

### Changed

* Fixed an issue where the sidebar preview would log JavaScript errors
* Updated to Tailwind CSS `^1.0.0`
* Updated to the latest ApexCharts, fixed issues due to changed APIs

## 1.0.10 - 2018.05.21

### Changed

* Updated to the latest version of the beacon (Boomerang 1.650.0), which fixes some issues
* Updated build system

## 1.0.9 - 2018.05.01

### Changed

* Removed vestigial debugging code
* Added a Sample Trimming Rate Limit that defaults to once per hour, to prevent the sample trimming from impacting
performance

## 1.0.8 - 2018.04.19

### Changed

* Fixed an issue where an empty **Exclude Patterns** table and the use of Project Config on Craft 3.1 or later could
cause an exception to be thrown when a 404 is thrown
* Fixed an issue where Webperf would fire during Live Preview when it shouldn't
* Updated Twig namespacing to be compliant with deprecated class aliases in 2.7.x

## 1.0.7 - 2019-03-15

### Changed

* Fixed a potential `Undefined property` in the MetricsController
* Don't allow editing of the plugin settings if `allowAdminChanges` is false
* Fixed an issue where an error would be thrown on the Performance Detail page if you were not running Craft 3.1 or
later

## 1.0.6 - 2019-02-28

### Changed

* Fixed a potential division by zero error in the memory limit recommendation under rare circumstances

## 1.0.5 - 2019-02-27

### Changed

* Fixed a `A non well formed numeric value` if you have your `memory_limit` set a certain way in your `php.ini`

## 1.0.4 - 2019-02-26

### Changed

* Fixed an issue with Craft 3.1.5 no longer allowing non-numeric values in the nav `badgeCount`
* Fixed a potential division by zero error in the memory limit recommendation

## 1.0.3 - 2019-02-22

### Changed

* Updated the beacon to remove `AutoXHR` and add in `MD5`
* If you're using Craft 3.1, Webperf will use
Craft [environmental variables](https://docs.craftcms.com/v3/config/environments.html#control-panel-settings) for
secrets

## 1.0.2 - 2019-02-20

### Changed

* Removed the unimplemented Widget stub

## 1.0.1 - 2019-02-12

### Changed

* Fixed the docs and changelog URLs in composer.json
* Price is now $59; I want as many people using Webperf as possible

## 1.0.0 - 2019-02-12

### Added

* Initial release
* Initial beta release for Craft CMS 5
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/nystudio107/craft-webperf/badges/quality-score.png?b=v1)](https://scrutinizer-ci.com/g/nystudio107/craft-webperf/?branch=v1) [![Code Coverage](https://scrutinizer-ci.com/g/nystudio107/craft-webperf/badges/coverage.png?b=v1)](https://scrutinizer-ci.com/g/nystudio107/craft-webperf/?branch=v1) [![Build Status](https://scrutinizer-ci.com/g/nystudio107/craft-webperf/badges/build.png?b=v1)](https://scrutinizer-ci.com/g/nystudio107/craft-webperf/build-status/v1) [![Code Intelligence Status](https://scrutinizer-ci.com/g/nystudio107/craft-webperf/badges/code-intelligence.svg?b=v1)](https://scrutinizer-ci.com/code-intelligence)
[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/nystudio107/craft-webperf/badges/quality-score.png?b=v5)](https://scrutinizer-ci.com/g/nystudio107/craft-webperf/?branch=v5) [![Code Coverage](https://scrutinizer-ci.com/g/nystudio107/craft-webperf/badges/coverage.png?b=v5)](https://scrutinizer-ci.com/g/nystudio107/craft-webperf/?branch=v5) [![Build Status](https://scrutinizer-ci.com/g/nystudio107/craft-webperf/badges/build.png?b=v5)](https://scrutinizer-ci.com/g/nystudio107/craft-webperf/build-status/v5) [![Code Intelligence Status](https://scrutinizer-ci.com/g/nystudio107/craft-webperf/badges/code-intelligence.svg?b=v5)](https://scrutinizer-ci.com/code-intelligence)

# Webperf plugin for Craft CMS 4.x
# Webperf plugin for Craft CMS 5.x

Webperf helps you build & maintain high quality websites through Real User Measurement of your website's performance

Expand All @@ -10,7 +10,7 @@ Webperf helps you build & maintain high quality websites through Real User Measu

## Requirements

This plugin requires Craft CMS 4.0.0 or later.
This plugin requires Craft CMS 5.0.0 or later.

## Installation

Expand Down
2 changes: 1 addition & 1 deletion buildchain/Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
MAJOR_VERSION?=4
MAJOR_VERSION?=5
TAG?=20-alpine
CONTAINER?=$(shell basename $(dir $(CURDIR)))-v${MAJOR_VERSION}-buildchain
DEV_PORT?=300${MAJOR_VERSION}
Expand Down
12 changes: 6 additions & 6 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "nystudio107/craft-webperf",
"description": "Webperf helps you build & maintain high quality websites through Real User Measurement of your website's performance",
"type": "craft-plugin",
"version": "4.0.1",
"version": "5.0.0-beta.1",
"keywords": [
"craft",
"cms",
Expand All @@ -23,8 +23,8 @@
}
],
"require": {
"craftcms/cms": "^4.0.0",
"nystudio107/craft-plugin-vite": "^4.0.0",
"craftcms/cms": "^5.0.0-beta.1",
"nystudio107/craft-plugin-vite": "^5.0.0-beta.1",
"jaybizzle/crawler-detect": "^1.2.37",
"league/csv": "^8.2 || ^9.0",
"whichbrowser/parser": "^2.0.37"
Expand All @@ -33,9 +33,9 @@
"craftcms/ecs": "dev-main",
"craftcms/phpstan": "dev-main",
"craftcms/rector": "dev-main",
"nystudio107/craft-minify": "^4.0.0-beta.1",
"nystudio107/craft-seomatic": "^4.0.0",
"putyourlightson/craft-blitz": "^4.0.0"
"nystudio107/craft-minify": "^5.0.0-beta.1",
"nystudio107/craft-seomatic": "^5.0.0-beta.1",
"putyourlightson/craft-blitz": "^5.0.0-beta.1"
},
"scripts": {
"phpstan": "phpstan --ansi --memory-limit=2G",
Expand Down
2 changes: 1 addition & 1 deletion docs/Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
MAJOR_VERSION?=4
MAJOR_VERSION?=5
TAG?=20-alpine
CONTAINER?=$(shell basename $(dir $(CURDIR)))-v${MAJOR_VERSION}-docs
DOCS_DEV_PORT?=400${MAJOR_VERSION}
Expand Down
15 changes: 8 additions & 7 deletions docs/docs/.vitepress/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,11 @@ export default defineConfig({
{
text: 'Topics',
items: [
{ text: 'Webperf Plugin', link: '/' },
{ text: 'Webperf Overview', link: '/overview.html' },
{ text: 'Performance Resources', link: '/resources.html' },
{ text: 'Configuring Webperf', link: '/configuring.html' },
{ text: 'Using Webperf', link: '/using.html' },
{text: 'Webperf Plugin', link: '/'},
{text: 'Webperf Overview', link: '/overview.html'},
{text: 'Performance Resources', link: '/resources.html'},
{text: 'Configuring Webperf', link: '/configuring.html'},
{text: 'Using Webperf', link: '/using.html'},
],
}
],
Expand All @@ -45,8 +45,9 @@ export default defineConfig({
{text: 'Changelog', link: 'https://nystudio107.com/plugins/webperf/changelog'},
{text: 'Issues', link: 'https://github.com/nystudio107/craft-webperf/issues'},
{
text: 'v4', items: [
{text: 'v4', link: '/'},
text: 'v5', items: [
{text: 'v5', link: '/'},
{text: 'v4', link: 'https://nystudio107.com/docs/webperf/v4/'},
{text: 'v3', link: 'https://nystudio107.com/docs/webperf/v3/'},
],
},
Expand Down
Loading

0 comments on commit 3b3167c

Please sign in to comment.