パッケージの詳細

@wordpress/url

WordPress582.5kGPL-2.0-or-later4.26.0

WordPress URL utilities.

wordpress, gutenberg, url

readme

Gutenberg

End-to-End Tests Static Analysis (Linting, License, Type checks...)/badge.svg>) Unit Tests Create Block React Native E2E Tests (iOS)/badge.svg>) React Native E2E Tests (Android)/badge.svg>)

Storybook Badge

lerna

Screenshot of the Gutenberg Editor, editing a post in WordPress

Welcome to the development hub for the WordPress Gutenberg project!

"Gutenberg" is a codename for a whole new paradigm in WordPress site building and publishing, that aims to revolutionize the entire publishing experience as much as Gutenberg did the printed word. Right now, the project is in the second phase of a four-phase process that will touch every piece of WordPress -- Editing, Customization, Collaboration (which includes Real-time collaboration, Asynchronous collaboration, Publishing flows, Post revisions interface, Admin design, Library), and Multilingual -- and is focused on a new editing experience, the block editor.

The block editor introduces a modular approach to pages and posts: each piece of content in the editor, from a paragraph to an image gallery to a headline, is its own block. And just like physical blocks, WordPress blocks can be added, arranged, and rearranged, allowing WordPress users to create media-rich pages in a visually intuitive way -- and without work-arounds like shortcodes or custom HTML.

The block editor first became available in December 2018, and we're still hard at work refining the experience, creating more and better blocks, and laying the groundwork for the next three phases of work. The Gutenberg plugin gives you the latest version of the block editor, so you can join us in testing bleeding-edge features, start playing with blocks, and maybe get inspired to build your own.

Check out the Keeping up with Gutenberg Index

Getting Started

Get hands on: check out the block editor live demo to play with a test instance of the editor.

Using Gutenberg

Developing for Gutenberg

Extending and customizing is at the heart of the WordPress platform, this is no different for the Gutenberg project. The editor and future products can be extended by third-party developers using plugins.

Review the Quick Start Guide for the fastest way to get started extending the block editor. See the Block Editor Handbook for extensive tutorials, documentation, and API references. Also, check the WordPress Developer Blog for great articles about block development, among other topics.

Contribute to Gutenberg

Gutenberg is an open-source project and welcomes all contributors from code to design, and from documentation to triage. The project is built by many contributors and volunteers, and we'd love your help building it.

See the Contributors Handbook for all the details on how you can contribute.

To get up and running quickly with code contribution see Getting Started With Code Contribution. Also check out the other resources available on the Code Contributions page.

In whichever way you wish to contribute please be sure to read the Contributing Guidelines first.

As with all WordPress projects, we want to ensure a welcoming environment for everyone. With that in mind, all contributors are expected to follow our Code of Conduct.

Get Involved

You can join us in the #core-editor channel in Slack, see the WordPress Slack page for signup information; it is free to join.

License

WordPress is free software, and is released under the terms of the GNU General Public License version 2 or (at your option) any later version. See LICENSE.md for complete license.



Code is Poetry.

更新履歴

Unreleased

4.26.0 (2025-06-25)

4.25.0 (2025-06-04)

4.24.0 (2025-05-22)

4.23.0 (2025-05-07)

4.22.0 (2025-04-11)

4.21.0 (2025-03-27)

4.20.0 (2025-03-13)

4.19.0 (2025-02-28)

4.18.0 (2025-02-12)

4.17.0 (2025-01-29)

4.16.0 (2025-01-15)

4.15.0 (2025-01-02)

4.14.0 (2024-12-11)

4.13.0 (2024-11-27)

4.12.0 (2024-11-16)

4.11.0 (2024-10-30)

4.10.0 (2024-10-16)

4.9.0 (2024-10-03)

4.8.0 (2024-09-19)

4.7.0 (2024-09-05)

4.6.0 (2024-08-21)

4.5.0 (2024-08-07)

4.4.0 (2024-07-24)

4.3.0 (2024-07-10)

4.2.0 (2024-06-26)

4.1.0 (2024-06-15)

4.0.0 (2024-05-31)

Breaking Changes

  • Increase the minimum required Node.js version to v18.12.0 matching long-term support releases (#31270). Learn more about Node.js releases.

3.59.0 (2024-05-16)

3.58.0 (2024-05-02)

3.57.0 (2024-04-19)

3.56.0 (2024-04-03)

3.55.0 (2024-03-21)

3.54.0 (2024-03-06)

3.53.0 (2024-02-21)

3.52.0 (2024-02-09)

3.51.0 (2024-01-24)

3.50.0 (2024-01-10)

3.49.0 (2023-12-13)

3.48.0 (2023-11-29)

3.47.0 (2023-11-16)

3.46.0 (2023-11-02)

3.45.0 (2023-10-18)

3.44.0 (2023-10-05)

3.43.0 (2023-09-20)

3.42.0 (2023-08-31)

3.41.0 (2023-08-16)

3.40.0 (2023-08-10)

3.39.0 (2023-07-20)

3.38.0 (2023-07-05)

3.37.0 (2023-06-23)

3.36.0 (2023-06-07)

3.35.0 (2023-05-24)

3.34.0 (2023-05-10)

3.33.0 (2023-04-26)

3.32.0 (2023-04-12)

3.31.0 (2023-03-29)

3.30.0 (2023-03-15)

3.29.0 (2023-03-01)

3.28.0 (2023-02-15)

3.27.0 (2023-02-01)

3.26.0 (2023-01-11)

3.25.0 (2023-01-02)

3.24.0 (2022-12-14)

3.23.0 (2022-11-16)

3.22.0 (2022-11-02)

3.21.0 (2022-10-19)

3.20.0 (2022-10-05)

3.19.0 (2022-09-21)

3.18.0 (2022-09-13)

3.17.0 (2022-08-24)

3.16.0 (2022-08-10)

3.15.0 (2022-07-27)

3.14.0 (2022-07-13)

3.13.0 (2022-06-29)

3.12.0 (2022-06-15)

3.11.0 (2022-06-01)

3.10.0 (2022-05-18)

3.9.0 (2022-05-04)

3.8.0 (2022-04-21)

3.7.0 (2022-04-08)

3.6.0 (2022-03-23)

3.5.0 (2022-03-11)

3.4.0 (2022-01-27)

3.3.0 (2021-11-07)

New Features

  • Added new normalizePath function (#35992).

3.2.3 (2021-10-12)

Bug Fixes

  • Removed unused react-native-url-polyfill dependency (#34687).

3.2.0 (2021-07-21)

3.1.0 (2021-05-20)

3.0.0 (2021-05-14)

Breaking Changes

2.22.0 (2021-03-17)

2.21.0 (2021-01-05)

New Features

  • Add optional argument maxLength for truncating URL in filterURLForDisplay

2.16.0 (2020-06-15)

New Features

  • Added getPathAndQueryString.

2.14.0 (2020-04-30)

Bug Fixes

  • addQueryArgs arguments are optional (#21926)

2.13.0 (2020-04-15)

New Features

  • Include TypeScript type declarations (#18942)

2.12.0 (2020-04-01)

Bug Fixes

  • getQueryString now correctly considers hash fragments when considering whether to return a query string. Previously, getQueryString( 'https://example.com/#?foo' ) would wrongly return 'foo' as its result. A hash fragment is always the last segment of a URL, and the querystring must always precede it (see reference specification).

2.11.0 (2020-02-10)

Bug Fixes

2.3.3 (2019-01-03)

Bug Fixes

  • addQueryArgs will return only the querystring fragment if the passed url is undefined. Previously, an uncaught error would be thrown.
  • addQueryArgs will not append (or remove) a ? if there are no query arguments to be added. Previously, ? would be wrongly appended even if there was no querystring generated.

2.3.2 (2018-12-12)

2.3.1 (2018-11-20)

Bug Fixes

  • The isValidProtocol function now correctly considers the protocol of the URL as only incorporating characters up to and including the colon (':').
  • getFragment is now greedier and matches fragments from the first occurrence of the '#' symbol instead of the last.

2.3.0 (2018-11-12)

New Features

  • Added getProtocol.
  • Added isValidProtocol.
  • Added getAuthority
  • Added isValidAuthority.
  • Added getPath.
  • Added isValidPath.
  • Added getQueryString.
  • Added isValidQueryString.
  • Added getFragment.
  • Added isValidFragment.

2.2.0 (2018-10-29)

New Features

  • Added getQueryArg.
  • Added hasQueryArg.
  • Added removeQueryArgs.

2.1.0 (2018-10-16)

New Features

  • Added safeDecodeURI.

2.0.1 (2018-09-30)

Bug Fixes

  • Fix typo in the qs dependency definition in the package.json

2.0.0 (2018-09-05)

Breaking Changes

  • Change how required built-ins are polyfilled with Babel 7 (#9171). If you're using an environment that has limited or no support for ES2015+ such as lower versions of IE then using core-js or @babel/polyfill will add support for these methods.