swup 4.8.2 → 4.8.3
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/README.md +1 -1
- package/dist/Swup.cjs +1 -1
- package/dist/Swup.cjs.map +1 -1
- package/dist/Swup.modern.js +1 -1
- package/dist/Swup.modern.js.map +1 -1
- package/dist/Swup.module.js +1 -1
- package/dist/Swup.module.js.map +1 -1
- package/dist/Swup.umd.js +1 -1
- package/dist/Swup.umd.js.map +1 -1
- package/dist/types/modules/plugins.d.ts +1 -1
- package/dist/types/modules/plugins.d.ts.map +1 -1
- package/package.json +2 -3
- package/src/helpers/classify.ts +1 -1
- package/src/modules/navigate.ts +1 -1
- package/src/modules/plugins.ts +1 -1
- package/src/utils.ts +1 -1
|
@@ -4,7 +4,7 @@ export type Plugin = {
|
|
|
4
4
|
isSwupPlugin: true;
|
|
5
5
|
/** Name of this plugin */
|
|
6
6
|
name: string;
|
|
7
|
-
/** Version of this plugin. Currently not in use, defined here for backward
|
|
7
|
+
/** Version of this plugin. Currently not in use, defined here for backward compatibility. */
|
|
8
8
|
version?: string;
|
|
9
9
|
/** The swup instance that mounted this plugin */
|
|
10
10
|
swup?: Swup;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plugins.d.ts","sourceRoot":"","sources":["../../../src/modules/plugins.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,IAAI,MAAM,YAAY,CAAC;AAEnC,MAAM,MAAM,MAAM,GAAG;IACpB,gCAAgC;IAChC,YAAY,EAAE,IAAI,CAAC;IACnB,0BAA0B;IAC1B,IAAI,EAAE,MAAM,CAAC;IACb,
|
|
1
|
+
{"version":3,"file":"plugins.d.ts","sourceRoot":"","sources":["../../../src/modules/plugins.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,IAAI,MAAM,YAAY,CAAC;AAEnC,MAAM,MAAM,MAAM,GAAG;IACpB,gCAAgC;IAChC,YAAY,EAAE,IAAI,CAAC;IACnB,0BAA0B;IAC1B,IAAI,EAAE,MAAM,CAAC;IACb,6FAA6F;IAC7F,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,iDAAiD;IACjD,IAAI,CAAC,EAAE,IAAI,CAAC;IACZ,sEAAsE;IACtE,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC,CAAC;IAC7C,mBAAmB;IACnB,KAAK,EAAE,MAAM,IAAI,CAAC;IAClB,qBAAqB;IACrB,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,YAAY,CAAC,EAAE,MAAM,IAAI,CAAC;IAC1B,aAAa,CAAC,EAAE,MAAM,IAAI,CAAC;IAC3B,kBAAkB,CAAC,EAAE,MAAM,OAAO,CAAC;CACnC,CAAC;AAOF,wBAAwB;AACxB,eAAO,MAAM,GAAG,SAAmB,IAAI,UAAU,OAAO,yBAoBvD,CAAC;AAEF,0BAA0B;AAC1B,wBAAgB,KAAK,CAAC,IAAI,EAAE,IAAI,EAAE,YAAY,EAAE,MAAM,GAAG,MAAM,wBAe9D;AAED,0CAA0C;AAC1C,wBAAgB,UAAU,CAAC,IAAI,EAAE,IAAI,EAAE,YAAY,EAAE,MAAM,GAAG,MAAM,sBAOnE"}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "swup",
|
|
3
3
|
"amdName": "Swup",
|
|
4
|
-
"version": "4.8.
|
|
4
|
+
"version": "4.8.3",
|
|
5
5
|
"description": "Versatile and extensible page transition library for server-rendered websites",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"source": "./src/Swup.ts",
|
|
@@ -33,7 +33,6 @@
|
|
|
33
33
|
"lint:compat": "npx eslint --config .eslintrc.compat.cjs --no-eslintrc .",
|
|
34
34
|
"lint:prettier": "prettier 'src/**/*.ts'",
|
|
35
35
|
"prepublishOnly": "npm run build",
|
|
36
|
-
"postinstall": "opencollective-postinstall || true",
|
|
37
36
|
"test": "npm run test:unit && npm run test:e2e",
|
|
38
37
|
"test:ci": "npm run test:unit && npm run test:e2e:ci",
|
|
39
38
|
"test:unit": "vitest run --config ./tests/config/vitest.config.ts",
|
|
@@ -82,7 +81,7 @@
|
|
|
82
81
|
},
|
|
83
82
|
"devDependencies": {
|
|
84
83
|
"@babel/preset-typescript": "^7.18.6",
|
|
85
|
-
"@playwright/test": "
|
|
84
|
+
"@playwright/test": "1.37.1",
|
|
86
85
|
"@swup/browserslist-config": "^1.0.0",
|
|
87
86
|
"@swup/prettier-config": "^1.0.0",
|
|
88
87
|
"@types/dom-view-transitions": "^1.0.2",
|
package/src/helpers/classify.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
export const classify = (text: string, fallback?: string): string => {
|
|
3
3
|
const output = String(text)
|
|
4
4
|
.toLowerCase()
|
|
5
|
-
// .normalize('NFD') // split an accented letter in the base letter and the
|
|
5
|
+
// .normalize('NFD') // split an accented letter in the base letter and the accent
|
|
6
6
|
// .replace(/[\u0300-\u036f]/g, '') // remove all previously split accents
|
|
7
7
|
.replace(/[\s/_.]+/g, '-') // replace spaces and _./ with '-'
|
|
8
8
|
.replace(/[^\w-]+/g, '') // remove all non-word chars
|
package/src/modules/navigate.ts
CHANGED
|
@@ -118,7 +118,7 @@ export async function performNavigation(
|
|
|
118
118
|
} else if (options.cache !== undefined) {
|
|
119
119
|
visit.cache = { read: !!options.cache, write: !!options.cache };
|
|
120
120
|
}
|
|
121
|
-
// Delete this so that window.fetch doesn't
|
|
121
|
+
// Delete this so that window.fetch doesn't misinterpret it
|
|
122
122
|
delete options.cache;
|
|
123
123
|
|
|
124
124
|
try {
|
package/src/modules/plugins.ts
CHANGED
|
@@ -5,7 +5,7 @@ export type Plugin = {
|
|
|
5
5
|
isSwupPlugin: true;
|
|
6
6
|
/** Name of this plugin */
|
|
7
7
|
name: string;
|
|
8
|
-
/** Version of this plugin. Currently not in use, defined here for backward
|
|
8
|
+
/** Version of this plugin. Currently not in use, defined here for backward compatibility. */
|
|
9
9
|
version?: string;
|
|
10
10
|
/** The swup instance that mounted this plugin */
|
|
11
11
|
swup?: Swup;
|
package/src/utils.ts
CHANGED