@wordpress/url 4.47.0 → 4.48.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -2,6 +2,10 @@
2
2
 
3
3
  ## Unreleased
4
4
 
5
+ ## 4.48.1 (2026-06-16)
6
+
7
+ ## 4.48.0 (2026-06-10)
8
+
5
9
  ## 4.47.0 (2026-05-27)
6
10
 
7
11
  ## 4.46.0 (2026-05-14)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wordpress/url",
3
- "version": "4.47.0",
3
+ "version": "4.48.1",
4
4
  "description": "WordPress URL utilities.",
5
5
  "author": "The WordPress Contributors",
6
6
  "license": "GPL-2.0-or-later",
@@ -39,7 +39,6 @@
39
39
  },
40
40
  "./package.json": "./package.json"
41
41
  },
42
- "react-native": "src/index",
43
42
  "wpScript": true,
44
43
  "types": "build-types",
45
44
  "sideEffects": false,
@@ -49,5 +48,5 @@
49
48
  "publishConfig": {
50
49
  "access": "public"
51
50
  },
52
- "gitHead": "d653c5fd6161571a0c2ebde28553d6e25624eacc"
51
+ "gitHead": "99df7432c5c7cb83ba41146fd1f57f3c19004305"
53
52
  }
@@ -1,53 +0,0 @@
1
- /**
2
- * Internal dependencies
3
- */
4
- import './index.js';
5
-
6
- /**
7
- * External dependencies
8
- */
9
- import 'react-native-url-polyfill/auto';
10
-
11
- jest.mock( './fixtures/wpt-data.json', () => {
12
- const data = jest.requireActual( './fixtures/wpt-data.json' );
13
-
14
- /**
15
- * Test items to exclude by input. Ideally this should be empty, but are
16
- * necessary by non-spec-conformance of the Native implementations.
17
- * Specifically, the React Native implementation uses an implementation of
18
- * WHATWG URL without full Unicode support.
19
- *
20
- * @type {string[]}
21
- */
22
- const URL_EXCEPTIONS = [
23
- 'https://�',
24
- 'https://%EF%BF%BD',
25
- 'http://a<b',
26
- 'http://a>b',
27
- 'http://a^b',
28
- 'non-special://a<b',
29
- 'non-special://a>b',
30
- 'non-special://a^b',
31
- 'ftp://example.com%80/',
32
- 'ftp://example.com%A0/',
33
- 'https://example.com%80/',
34
- 'https://example.com%A0/',
35
- 'file://­/p',
36
- 'file://%C2%AD/p',
37
- 'file://xn--/p',
38
- 'http://a.b.c.xn--pokxncvks',
39
- 'http://10.0.0.xn--pokxncvks',
40
- 'foo://ho|st/',
41
- 'http://ho%3Cst/',
42
- 'http://ho%3Est/',
43
- 'http://ho%7Cst/',
44
- 'file://%43%7C',
45
- 'file://%43|',
46
- 'file://C%7C',
47
- 'file://%43%7C/',
48
- 'https://%43%7C/',
49
- 'asdf://%43|/',
50
- ];
51
-
52
- return data.filter( ( { input } ) => ! URL_EXCEPTIONS.includes( input ) );
53
- } );
@@ -1,22 +0,0 @@
1
- /**
2
- * Internal dependencies
3
- */
4
- import { isURL } from '../is-url';
5
-
6
- describe( 'isURL valid', () => {
7
- it.each( [
8
- [ 'http://wordpress.org' ],
9
- [ 'https://wordpress.org/path?query#fragment' ],
10
- ] )( '%s', ( input ) => {
11
- expect( isURL( input ) ).toBe( true );
12
- } );
13
- } );
14
-
15
- describe( 'isURL invalid', () => {
16
- it.each( [
17
- [ 'http://wordpress.org:port' ],
18
- [ 'HTTP: HyperText Transfer Protocol' ],
19
- ] )( '%s', ( input ) => {
20
- expect( isURL( input ) ).toBe( false );
21
- } );
22
- } );