Skip to content

Prepare v0.9.9 release with import memory optimizations - #26

Merged
firstelementjp merged 25 commits into
mainfrom
develop
Mar 29, 2026
Merged

Prepare v0.9.9 release with import memory optimizations#26
firstelementjp merged 25 commits into
mainfrom
develop

Conversation

@firstelementjp

Copy link
Copy Markdown
Owner

Summary

Merge develop into main for the v0.9.9 release.

This PR includes:

  • version updates for v0.9.9
  • import memory and performance improvements
  • CSV parsing and import reliability fixes
  • release documentation and guidance updates
  • PHPCS and JS lint cleanup

Changes

Import memory and performance improvements

  • improve batch import flow to reduce unnecessary CSV data held in memory
  • reuse parsed batch data to avoid duplicate parsing work
  • refine streamed CSV batch reading for better scalability on larger imports

CSV parsing and import reliability

  • improve CSV parsing and validation flow
  • refine import-related processing paths for more stable batch execution

Release preparation updates

  • update plugin version in swift-csv.php
  • update package version in package.json
  • update release tag in test-release.sh
  • refresh release-related documentation and internal guidance

Code quality updates

  • fix composer phpcs to target includes/ with phpcs.xml.dist
  • resolve PHPCS issues in import-related files
  • remove debug-only logging in import row context
  • add explicit PHPCS ignores for intentional base64_encode() / base64_decode() usage
  • remove one unused function in assets/js/swift-csv-import.js

Validation

  • composer phpcs
  • composer test
  • npm run lint:js

All passed locally.

Notes

  • test-generated files such as .phpunit.result.cache and tests/results/* were excluded from the commit
  • Dependabot security updates will be handled separately

dxd5001 and others added 25 commits March 20, 2026 21:08
…ields and suppress update_field during dry runs
- Add Swift_CSV_Import_Cancel_Manager for server-side cancellation flags
- Add swift_csv_cancel_import AJAX endpoint to receive frontend cancel signals
- Integrate cancellation checks in import batch processor (batch and row boundaries)
- Add cancellation checks in WP-compatible importer before and after batch processing
- Add frontend cancel signal sending and prevent duplicate cancel button handlers
- Improve import session cleanup on cancellation to remove CSV data, logs, and cancel flags
- Add detailed logging for existing post lookup mismatches during import updates
…s-scripts

chore: update frontend tooling dependencies
- Update yoast/phpunit-polyfills from 2.0.5 to 4.0.0
- Update actions/checkout from v4 to v6
- Update actions/setup-node from v4 to v6
- Update actions/configure-pages from v4 to v5
- Update Node.js version in CI from 18 to 22
chore: update PHP and GitHub Actions dependencies
- Add npm install to local development setup
- Remove npm run build as it's only needed when making changes
- Fix JavaScript post_type selector to match admin field id
- Add temporary debug logging to inspect import request values
- Update error_log path to plugin debug.log for easier access
@firstelementjp
firstelementjp merged commit 2055472 into main Mar 29, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants