{"id":15150791,"url":"https://github.com/landjonathan/wp-theme-semver-bump","last_synced_at":"2026-04-28T17:01:30.989Z","repository":{"id":57399565,"uuid":"373232793","full_name":"landjonathan/wp-theme-semver-bump","owner":"landjonathan","description":"A small utility that bumps WordPress theme versions using semantic versioning. Useful for cache-busting production sites.","archived":false,"fork":false,"pushed_at":"2022-11-14T08:13:48.000Z","size":26,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-01-19T16:34:08.515Z","etag":null,"topics":["semantic-versioning","semver","theme-development","wordpress","wordpress-development","wordpress-theme"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/landjonathan.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-06-02T16:20:36.000Z","updated_at":"2022-11-14T08:13:40.000Z","dependencies_parsed_at":"2023-01-22T07:47:17.575Z","dependency_job_id":null,"html_url":"https://github.com/landjonathan/wp-theme-semver-bump","commit_stats":null,"previous_names":["landjonathan/wp-theme-semantic-version"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/landjonathan/wp-theme-semver-bump","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/landjonathan%2Fwp-theme-semver-bump","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/landjonathan%2Fwp-theme-semver-bump/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/landjonathan%2Fwp-theme-semver-bump/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/landjonathan%2Fwp-theme-semver-bump/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/landjonathan","download_url":"https://codeload.github.com/landjonathan/wp-theme-semver-bump/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/landjonathan%2Fwp-theme-semver-bump/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32390067,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-28T14:34:11.604Z","status":"ssl_error","status_checked_at":"2026-04-28T14:32:37.009Z","response_time":56,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["semantic-versioning","semver","theme-development","wordpress","wordpress-development","wordpress-theme"],"created_at":"2024-09-26T14:42:31.455Z","updated_at":"2026-04-28T17:01:30.950Z","avatar_url":"https://github.com/landjonathan.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# WP theme semantic versioning\n\nA small utility that bumps WordPress theme versions using [semantic versioning](https://semver.org/).\nUseful for cache-busting production sites.\n\n## Usage\n\n### Terminal\nIn the theme's folder, run\n```bash\nnpx wp-theme-semver-bump\n```\n\n### In a script (e.g. gulp)\n```js\nconst bump = require('wp-theme-semver-bump')\n// ...\nbump()\n```\n\n## Arguments\n\n### Release type\n```bash\nnpx wp-theme-semver-bump minor\n```\nor\n```js\nbump('minor')\n```\n\n## Custom file location\n```bash\nnpx wp-theme-semver-bump patch relative/path/to/style.css\n```\nor\n```js\nbump('patch', './relative/path/to/style.css')\n```\n\n## Why?\nThe main use case is cache busting in production. No more \"Try emptying the cache or opening in an incognito tab\"!\n\nThe theme version can be appended to enqueued assets:\n```php\n// functions.php or wherever you enqueue assets\n\n// get the Version value from the theme's root style.css\n$theme_version = wp_get_theme()-\u003eget('Version'); \n\n// append the version no. to the asset's src / href, e.g. 'theme/css/style.min.css?ver=0.1.0'\nwp_enqueue_style('style', get_stylesheet_directory_uri() . '/css/style.min.css', [], $theme_version);\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flandjonathan%2Fwp-theme-semver-bump","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flandjonathan%2Fwp-theme-semver-bump","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flandjonathan%2Fwp-theme-semver-bump/lists"}