![Create React App Officially Deprecated Amid React 19 Compatibility Issues](https://cdn.sanity.io/images/cgdhsj6q/production/04fa08cf844d798abc0e1a6391c129363cc7e2ab-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Create React App Officially Deprecated Amid React 19 Compatibility Issues
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
govuk_taxonomy_helpers
Advanced tools
Parses the taxonomy of GOV.UK into a browseable tree structure.
Add this line to your application's Gemfile:
gem 'govuk_taxonomy_helpers'
And then execute:
$ bundle
Or install it yourself as:
$ gem install govuk_taxonomy_helpers
The API is provisional and is likely to change for versions < 1.0.0.
To access the taxonomy, first get the content_id of the piece of content you want the taxonomy for, then parse it to get a LinkedContentItem
object.
require 'govuk_taxonomy_helpers'
taxonomy = GovukTaxonomyHelpers::LinkedContentItem.from_content_id(
content_id: "c75c541-403f-4cb1-9b34-4ddde816a80d",
publishing_api: Services.publishing_api
)
A LinkedContentItem
built from a taxon can access all narrower term taxons below it and all broader term taxons above it.
A taxon may have many child taxons, but can only have one or zero parents.
taxon.children
# => [LinkedContentItem(title: child-1-id, ...), LinkedContentItem(title: child-2, ...)]
taxon.parent
# => LinkedContentItem(title: root, ...)
taxon.breadcrumb_trail
# => [LinkedContentItem(title: root, ...), LinkedContentItem(title: taxon, ...)]
A LinkedContentItem
built from an content_item that isn't a taxon can access all taxons associated with it.
content_item.taxons
# => [LinkedContentItem(title: taxon, ...),
# LinkedContentItem(title: another-taxon, ...)]
content_item.taxons_with_ancestors
# => [LinkedContentItem(title: root, ...),
# LinkedContentItem(title: taxon-parent, ...),
# LinkedContentItem(title: taxon, ...),
# LinkedContentItem(title: another-taxon, ...)]
To run a Yard server locally to preview documentation, run:
$ bundle exec yard server --reload
git checkout -b my-new-feature
)git commit -am 'Add some feature'
)git push origin my-new-feature
)FAQs
Unknown package
We found that govuk_taxonomy_helpers demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.