Releases: washingtonstateuniversity/wsuwp-plugin-hrs-courses
1.3.1
1.3.1 RC1
Notable changes
Changed
- Switch from old Sidebar namespace
hrs-wsu-edu/sidebar
to new versionhrswp/sidebar
in Courses template.
1.3.0
Notable changes
Fixed
Changed
- Close #22, fetch and render a reusuable block by name at the start of the courses archive template to provide a space for an optional notice that can be modified from the WP admin area.
- ⬆️ @wordpress/eslint-plugin => 4.0.0
- ⬆️ rimraf => 3.0.2
- ⬆️ stylelint => 13.2.0
- ⬆️ webpack => 4.41.6
- ⬆️ webpack-cli => 3.3.11
- ⬆️ sirbrillig/phpcs-variable-analysis => 2.8.1
Added
- 🔧 config file for Prettier package.
- 🔧 npm
fix
script to auto-fix linting issues. - ➕ prettier@npm:[email protected]
Removed
- Old workaround from Travis.ci config.
1.2.0
Changed the Courses taxonomy archive pages (for Course Tags and Learning Programs) to show all matching posts (instead of defaulting to the posts-to-show setting) and to list them in alphabetical order by title instead of the default reverse chronological order. Also changed the page title of the main courses archive page.
Notable changes
Changed
- Change courses archive title to "All WSU Courses".
- Fix #20, modify Courses taxonomy archive pages to match main Courses archive (display all and order by title).
- ⬆️ @wordpress/babel-preset-default => 4.10.0
- ⬆️ @wordpress/dependency-extraction-webpack-plugin => 2.2.0
- ⬆️ @wordpress/eslint-plugin => 3.4.1
- ⬆️ @wordpress/jest-preset-default => 5.4.0
- ⬆️ @wordpress/npm-package-json-lint-config => 2.2.0
- ⬆️ jest => 25.1.0
- ⬆️ npm-package-json-lint => 4.6.0
- ⬆️ puppeteer => 2.1.1
- ⬆️ rimraf => 3.0.1
- ⬆️ dealerdirect/phpcodesniffer-composer-installer => 0.6.2
- ⬆️ squizlabs/php_codesniffer => 3.5.4
- ⬆️ wp-coding-standards/wpcs => 2.2.1
1.2.0 RC1
Changed the Courses taxonomy archive pages (for Course Tags and Learning Programs) to show all matching posts (instead of defaulting to the posts-to-show setting) and to list them in alphabetical order by title instead of the default reverse chronological order. Also changed the page title of the main courses archive page.
Notable changes
Changed
- Change courses archive title to "All WSU Courses".
- Fix #20, modify Courses taxonomy archive pages to match main Courses archive (display all and order by title).
- ⬆️ @wordpress/babel-preset-default => 4.10.0
- ⬆️ @wordpress/dependency-extraction-webpack-plugin => 2.2.0
- ⬆️ @wordpress/eslint-plugin => 3.4.1
- ⬆️ @wordpress/jest-preset-default => 5.4.0
- ⬆️ @wordpress/npm-package-json-lint-config => 2.2.0
- ⬆️ jest => 25.1.0
- ⬆️ npm-package-json-lint => 4.6.0
- ⬆️ puppeteer => 2.1.1
- ⬆️ rimraf => 3.0.1
- ⬆️ dealerdirect/phpcodesniffer-composer-installer => 0.6.2
- ⬆️ squizlabs/php_codesniffer => 3.5.4
- ⬆️ wp-coding-standards/wpcs => 2.2.1
1.1.0
Adds JavaScript to detect long Courses taxonomy term lists (only on archive pages) and collapse them into expandable menus.
Notable changes
Fixed
⚠️ Fix phpcs linter errors following rules update.- 🎨 Adjust breaking on long inline list items to improve readability.
Changed
- 🔧 Update phpcs linting rules
- ⬆️ wp-coding-standards/wpcs
- ⬆️ @wordpress/babel-preset-default
- ⬆️ postcss-cli
- ⬆️ stylelint
Added
- 🎨 Styles and icons to handle expanding and contracting expandable lists.
- ✨ JavaScript class for converting long lists into expandable lists.
- ➕ phpcompatibility/php-compatibility Composer dev dependency.
- ➕ squizlabs/php_codesniffer Composer dev dependency.
- ➕ sirbrillig/phpcs-variable-analysis Composer dev dependency to sniff unused variables.
- ➕ roave/security-advisories Composer dev dependency to monitor Composer dependency security.
1.0.1
Development environment maintenance update.
Notable changes
Changed
- Increment "tested up to" to WordPress 5.2.3.
- Update stylelint config to ignore underscore errors because the block editor uses them.
- ⬆️ squizlabs/php_codesniffer
- ⬆️ wp-coding-standards/wpcs
- ⬆️ @wordpress/babel-preset-default
- ⬆️ @wordpress/dependency-extraction-webpack-plugin
- ⬆️ @wordpress/eslint-plugin
- ⬆️ @wordpress/jest-preset-default
- ⬆️ copy-webpack-plugin
- ⬆️ eslint
- ⬆️ jest-puppeteer
- ⬆️ npm-package-json-lint
- ⬆️ puppeteer
- ⬆️ stylelint
- ⬆️ stylelint-config-wordpress
- ⬆️ webpack
- ⬆️ webpack-bundle-analyzer
- ⬆️ webpack-cli
1.0.0
Converts several custom blocks that relied on server-side rendering into default client rendered blocks to fix problems with them not showing up when included as children of other dynamic (server-side rendered) blocks. Also introduces course search using the base CPT archive page and uninstall methods to trash courses posts and delete custom taxonomy and terms.
Notable changes
Fixed
- 🐛 Use 'html' instead of 'text' as source attribute for
course-presenter
andcourse-location
blocks to allow saving formatting markup. - Fix #12 Convert dynamic blocks that are children of a dynamic block into static blocks so they display in parent block.
- 🐛 Don't exit early out of dynamic block registration loop if an individual file isn't found, continue processing the rest.
- Fix output of
list-courses
full content display option to match the standard archive display. Thewp_kses_post
function was stripping out SVG icons. Switch to a set of custom filters instead. - 🎨 Handle default state (without a "has style" modifier) of the
list-courses
block. - Fix #8 Fix taxonomy description styling to better handle multiple paragraphs.
- Fix #10 Restore default link styling in the course documents lists.
- Fix #9 Remove the "Part of the Learning Program" lead-in text.
Changed
- 📝 Close #16 Completed README file with description, installation and management instructions, and developer info.
- Use
$wpdb
methods to trash Courses CPTs on uninstall instead ofget_posts()
andwp_trash_post()
. The get posts -> trash posts approach can use a lot of memory if there are a lot of posts and cause a significant slowdown. - Move uninstall methods from a dedicated file into a class method hooked to
register_uninstall_hook
. - Modify the archive template to handle display of search results as well as the standard archive and taxonomy archive display.
- Move "Enroll" button in the single Course block template outside the sidebar block so that it will always be last in the DOM order.
- Add frontmatter to the courses archive template to either contain the taxonomy description or display a "find a course" section with features to help users search/browse for courses. Uses the new
\the_taxonomy_nav_list
function. - Filter the HRS Courses post type archive query to display all courses on the main archive page and sort them alphabetically starting with 'A'.
- Modify
course-datetime
,course-location
, andcourse-presenter
blocks to save the block values as both post meta and post content to avoid the need for server-side rendering. This helps to address #12. - Restore
.gitignore
to version control. - 🚚 Move non-block styles out of the
list-courses
block style file. - ⬆️ @wordpress/babel-preset-default 4.4.0 -> 4.6.0
- ⬆️ @wordpress/eslint-plugin 3.0.0 -> 3.1.0
- ⬆️ @wordpress/dependency-extraction-webpack-plugin 1.1.0 -> 2.0.0
- ⬆️ @wordpress/eslint-plugin 2.4.0 -> 3.0.0
- ⬆️ @wordpress/jest-preset-default 4.3.0 -> 5.1.0
- ⬆️ eslint 6.2.2 -> 6.4.0
- ⬆️ puppeteer 1.19.0 -> 1.20.0
- ⬆️ stylelint 10.1.0 -> 11.0.0
- ⬆️ webpack 4.39.3 -> 4.40.2
- ⬆️ webpack-bundle-analyzer 3.5.0 -> 3.5.1
- ⬆️ webpack-cli 3.3.7 -> 3.3.9
Added
- ✅ Github issue and pull request templates.
- Uninstall method to remove all Courses custom taxonomies and terms.
- ✨ Close #11 Allow searching all courses with custom search form and results page.
- Function to display a list of all the terms with attached posts for a given taxonomy, formatted as an unordered list with a heading.
- Custom filter 'wsuwp_hrs_courses_enroll_link' to allow modifying the "Enroll" link HTML.
- Custom filter 'wsuwp_hrs_courses_documents_list' to allow modifying the course document list HTML.
Removed
- 👷 Drop support for PHP versions less than 7.0 and update CI tests to match.
- 🔥 Server-side render methods for the
course-datetime
,course-location
, andcourse-presenter
blocks.
1.0.0 RC2
Converts several custom blocks that relied on server-side rendering into default client rendered blocks to fix problems with them not showing up when included as children of other dynamic (server-side rendered) blocks. Also introduces course search using the base CPT archive page and uninstall methods to trash courses posts and delete custom taxonomy and terms.
Notable changes
Fixed
- 🐛 Use 'html' instead of 'text' as source attribute for
course-presenter
andcourse-location
blocks to allow saving formatting markup. - Fix #12 Convert dynamic blocks that are children of a dynamic block into static blocks so they display in parent block.
- 🐛 Don't exit early out of dynamic block registration loop if an individual file isn't found, continue processing the rest.
- Fix output of
list-courses
full content display option to match the standard archive display. Thewp_kses_post
function was stripping out SVG icons. Switch to a set of custom filters instead. - 🎨 Handle default state (without a "has style" modifier) of the
list-courses
block. - Fix #8 Fix taxonomy description styling to better handle multiple paragraphs.
- Fix #10 Restore default link styling in the course documents lists.
- Fix #9 Remove the "Part of the Learning Program" lead-in text.
Changed
- 📝 Close #16 Completed README file with description, installation and management instructions, and developer info.
- Use
$wpdb
methods to trash Courses CPTs on uninstall instead ofget_posts()
andwp_trash_post()
. The get posts -> trash posts approach can use a lot of memory if there are a lot of posts and cause a significant slowdown. - Move uninstall methods from a dedicated file into a class method hooked to
register_uninstall_hook
. - Modify the archive template to handle display of search results as well as the standard archive and taxonomy archive display.
- Move "Enroll" button in the single Course block template outside the sidebar block so that it will always be last in the DOM order.
- Add frontmatter to the courses archive template to either contain the taxonomy description or display a "find a course" section with features to help users search/browse for courses. Uses the new
\the_taxonomy_nav_list
function. - Filter the HRS Courses post type archive query to display all courses on the main archive page and sort them alphabetically starting with 'A'.
- Modify
course-datetime
,course-location
, andcourse-presenter
blocks to save the block values as both post meta and post content to avoid the need for server-side rendering. This helps to address #12. - Restore
.gitignore
to version control. - 🚚 Move non-block styles out of the
list-courses
block style file. - ⬆️ @wordpress/babel-preset-default 4.4.0 -> 4.6.0
- ⬆️ @wordpress/eslint-plugin 3.0.0 -> 3.1.0
- ⬆️ @wordpress/dependency-extraction-webpack-plugin 1.1.0 -> 2.0.0
- ⬆️ @wordpress/eslint-plugin 2.4.0 -> 3.0.0
- ⬆️ @wordpress/jest-preset-default 4.3.0 -> 5.1.0
- ⬆️ eslint 6.2.2 -> 6.4.0
- ⬆️ puppeteer 1.19.0 -> 1.20.0
- ⬆️ stylelint 10.1.0 -> 11.0.0
- ⬆️ webpack 4.39.3 -> 4.40.2
- ⬆️ webpack-bundle-analyzer 3.4.1 -> 3.5.0
- ⬆️ webpack-cli 3.3.7 -> 3.3.9
Added
- ✅ Github issue and pull request templates.
- Uninstall method to remove all Courses custom taxonomies and terms.
- ✨ Close #11 Allow searching all courses with custom search form and results page.
- Function to display a list of all the terms with attached posts for a given taxonomy, formatted as an unordered list with a heading.
- Custom filter 'wsuwp_hrs_courses_enroll_link' to allow modifying the "Enroll" link HTML.
- Custom filter 'wsuwp_hrs_courses_documents_list' to allow modifying the course document list HTML.
Removed
- 👷 Drop support for PHP versions less than 7.0 and update CI tests to match.
- 🔥 Server-side render methods for the
course-datetime
,course-location
, andcourse-presenter
blocks.
1.0.0 RC1
Converts several custom blocks that relied on server-side rendering into default client rendered blocks to fix problems with them not showing up when included as children of other dynamic (server-side rendered) blocks. Also introduces course search using the base CPT archive page and uninstall methods to trash courses posts and delete custom taxonomy and terms.
Notable changes
Fixed
- 🐛 Use 'html' instead of 'text' as source attribute for
course-presenter
andcourse-location
blocks to allow saving formatting markup. - Fix #12 Convert dynamic blocks that are children of a dynamic block into static blocks so they display in parent block.
- 🐛 Don't exit early out of dynamic block registration loop if an individual file isn't found, continue processing the rest.
- Fix output of
list-courses
full content display option to match the standard archive display. Thewp_kses_post
function was stripping out SVG icons. Switch to a set of custom filters instead. - 🎨 Handle default state (without a "has style" modifier) of the
list-courses
block. - Fix #8 Fix taxonomy description styling to better handle multiple paragraphs.
- Fix #10 Restore default link styling in the course documents lists.
- Fix #9 Remove the "Part of the Learning Program" lead-in text.
Changed
- Use
$wpdb
methods to trash Courses CPTs on uninstall instead ofget_posts()
andwp_trash_post()
. The get posts -> trash posts approach can use a lot of memory if there are a lot of posts and cause a significant slowdown. - Move uninstall methods from a dedicated file into a class method hooked to
register_uninstall_hook
. - Modify the archive template to handle display of search results as well as the standard archive and taxonomy archive display.
- Move "Enroll" button in the single Course block template outside the sidebar block so that it will always be last in the DOM order.
- Add frontmatter to the courses archive template to either contain the taxonomy description or display a "find a course" section with features to help users search/browse for courses. Uses the new
\the_taxonomy_nav_list
function. - Filter the HRS Courses post type archive query to display all courses on the main archive page and sort them alphabetically starting with 'A'.
- Modify
course-datetime
,course-location
, andcourse-presenter
blocks to save the block values as both post meta and post content to avoid the need for server-side rendering. This helps to address #12. - Restore
.gitignore
to version control. - 🚚 Move non-block styles out of the
list-courses
block style file. - ⬆️ @wordpress/babel-preset-default 4.4.0 -> 4.6.0
- ⬆️ @wordpress/eslint-plugin 3.0.0 -> 3.1.0
- ⬆️ @wordpress/dependency-extraction-webpack-plugin 1.1.0 -> 2.0.0
- ⬆️ @wordpress/eslint-plugin 2.4.0 -> 3.0.0
- ⬆️ @wordpress/jest-preset-default 4.3.0 -> 5.1.0
- ⬆️ eslint 6.2.2 -> 6.4.0
- ⬆️ puppeteer 1.19.0 -> 1.20.0
- ⬆️ stylelint 10.1.0 -> 11.0.0
- ⬆️ webpack 4.39.3 -> 4.40.2
- ⬆️ webpack-bundle-analyzer 3.4.1 -> 3.5.0
- ⬆️ webpack-cli 3.3.7 -> 3.3.9
Added
- Uninstall method to remove all Courses custom taxonomies and terms.
- ✨ Close #11 Allow searching all courses with custom search form and results page.
- Function to display a list of all the terms with attached posts for a given taxonomy, formatted as an unordered list with a heading.
- Custom filter 'wsuwp_hrs_courses_enroll_link' to allow modifying the "Enroll" link HTML.
- Custom filter 'wsuwp_hrs_courses_documents_list' to allow modifying the course document list HTML.
Removed
- 👷 Drop support for PHP versions less than 7.0 and update CI tests to match.
- 🔥 Server-side render methods for the
course-datetime
,course-location
, andcourse-presenter
blocks.