Merge pull request #1730 from shlinkio/develop

Release 4.6.0
This commit is contained in:
Alejandro Celaya 2025-11-12 14:53:52 +01:00 committed by GitHub
commit 77f8d63b95
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
9 changed files with 1588 additions and 2854 deletions

View File

@ -4,6 +4,25 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org).
## [4.6.0] - 2025-11-12
### Added
* [shlink-web-component#839](https://github.com/shlinkio/shlink-web-component/issues/839) Allow filtering short URLs by excluded tags when using Shlink >=4.6.0
* [shlink-web-component#838](https://github.com/shlinkio/shlink-web-component/issues/838) Allow filtering tag, orphan and non-orphan visits by domain, when using Shlink >=4.6.0
* [shlink-web-component#784](https://github.com/shlinkio/shlink-web-component/issues/784) Add optional `long-url` query parameter to short URL creation to prefill the long URL programmatically.
### Changed
* *Nothing*
### Deprecated
* *Nothing*
### Removed
* Drop support for Shlink older than 4.0.0
### Fixed
* *Nothing*
## [4.5.1] - 2025-08-13
### Added
* *Nothing*

View File

@ -1,4 +1,4 @@
FROM node:24.5-alpine AS node
FROM node:25.1-alpine AS node
COPY . /shlink-web-client
ARG VERSION="latest"
ENV VERSION=${VERSION}

View File

@ -1,4 +1,4 @@
FROM mcr.microsoft.com/playwright:v1.54.2-noble
FROM mcr.microsoft.com/playwright:v1.56.1-noble
ENV NODE_VERSION 22.14
ENV TINI_VERSION v0.19.0

4327
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -7,7 +7,7 @@
"license": "MIT",
"type": "module",
"scripts": {
"lint": "eslint src test config/test",
"lint": "eslint src test config/test *.config.{js,ts}",
"lint:fix": "node --run lint -- --fix",
"types": "tsc",
"start": "vite serve --host=0.0.0.0",
@ -20,28 +20,29 @@
"test:verbose": "node --run test -- --verbose"
},
"dependencies": {
"@fortawesome/fontawesome-free": "^7.0.0",
"@fortawesome/fontawesome-svg-core": "^7.0.0",
"@fortawesome/free-brands-svg-icons": "^7.0.0",
"@fortawesome/free-regular-svg-icons": "^7.0.0",
"@fortawesome/free-solid-svg-icons": "^7.0.0",
"@fortawesome/react-fontawesome": "^0.2.3",
"@fortawesome/fontawesome-free": "^7.1.0",
"@fortawesome/fontawesome-svg-core": "^7.1.0",
"@fortawesome/free-brands-svg-icons": "^7.1.0",
"@fortawesome/free-regular-svg-icons": "^7.1.0",
"@fortawesome/free-solid-svg-icons": "^7.1.0",
"@fortawesome/react-fontawesome": "^3.1.0",
"@json2csv/plainjs": "^7.0.6",
"@reduxjs/toolkit": "^2.8.2",
"@shlinkio/data-manipulation": "^1.0.3",
"@shlinkio/shlink-frontend-kit": "^1.1.0",
"@shlinkio/shlink-js-sdk": "^2.2.1",
"@shlinkio/shlink-web-component": "^0.16.1",
"@reduxjs/toolkit": "^2.10.1",
"@shlinkio/data-manipulation": "^1.0.4",
"@shlinkio/shlink-frontend-kit": "^1.3.0",
"@shlinkio/shlink-js-sdk": "^3.0.1",
"@shlinkio/shlink-web-component": "^0.17.0",
"@vitest/browser-playwright": "^4.0.8",
"bottlejs": "^2.0.1",
"clsx": "^2.1.1",
"compare-versions": "^6.1.1",
"csvtojson": "^2.0.10",
"csvtojson": "^2.0.14",
"date-fns": "^4.1.0",
"react": "^19.1.1",
"react-dom": "^19.1.1",
"react-external-link": "^2.5.0",
"react": "^19.2.0",
"react-dom": "^19.2.0",
"react-external-link": "^2.6.1",
"react-redux": "^9.2.0",
"react-router": "^7.8.0",
"react-router": "^7.9.5",
"redux-localstorage-simple": "^2.5.1",
"workbox-core": "^7.3.0",
"workbox-expiration": "^7.3.0",
@ -50,36 +51,36 @@
"workbox-strategies": "^7.3.0"
},
"devDependencies": {
"@shlinkio/eslint-config-js-coding-standard": "~3.5.0",
"@stylistic/eslint-plugin": "^5.2.3",
"@tailwindcss/vite": "^4.1.11",
"@testing-library/jest-dom": "^6.6.4",
"@shlinkio/eslint-config-js-coding-standard": "~3.7.0",
"@stylistic/eslint-plugin": "^5.5.0",
"@tailwindcss/vite": "^4.1.17",
"@testing-library/jest-dom": "^6.9.1",
"@testing-library/react": "^16.3.0",
"@testing-library/user-event": "^14.6.1",
"@total-typescript/shoehorn": "^0.1.2",
"@types/react": "^19.1.9",
"@types/react-dom": "^19.1.7",
"@vitejs/plugin-react": "^5.0.0",
"@vitest/browser": "^3.2.4",
"@vitest/coverage-v8": "^3.2.4",
"@types/react": "^19.2.2",
"@types/react-dom": "^19.2.2",
"@vitejs/plugin-react": "^5.1.0",
"@vitest/browser": "^4.0.3",
"@vitest/coverage-v8": "^4.0.8",
"adm-zip": "^0.5.16",
"axe-core": "^4.10.3",
"chalk": "^5.5.0",
"eslint": "^9.33.0",
"axe-core": "^4.11.0",
"chalk": "^5.6.2",
"eslint": "^9.39.1",
"eslint-plugin-import": "^2.32.0",
"eslint-plugin-jsx-a11y": "^6.10.2",
"eslint-plugin-react": "^7.37.5",
"eslint-plugin-react-compiler": "^19.0.0-beta-714736e-20250131",
"eslint-plugin-react-hooks": "^5.2.0",
"eslint-plugin-react-hooks": "^7.0.1",
"eslint-plugin-simple-import-sort": "^12.1.1",
"history": "^5.3.0",
"playwright": "^1.54.2",
"playwright": "^1.56.1",
"tailwindcss": "^4.1.3",
"typescript": "^5.8.3",
"typescript-eslint": "^8.39.0",
"vite": "^7.1.1",
"vite-plugin-pwa": "^1.0.2",
"vitest": "^3.0.5"
"typescript": "^5.9.3",
"typescript-eslint": "^8.46.3",
"vite": "^7.2.2",
"vite-plugin-pwa": "^1.1.0",
"vitest": "^4.0.3"
},
"browserslist": [
">0.2%",

View File

@ -18,9 +18,7 @@ const initialState: Settings = {
realTimeUpdates: {
enabled: true,
},
shortUrlCreation: {
validateUrls: false,
},
shortUrlCreation: {},
ui: {
theme: getSystemPreferredTheme(),
},

View File

@ -6,7 +6,7 @@ exports[`<ManageServersRowDropdown /> > renders expected size and icon 1`] = `
class="relative inline-block"
>
<button
aria-controls="«r9»"
aria-controls="_r_1h_"
aria-expanded="false"
aria-haspopup="true"
aria-label="Options"
@ -15,7 +15,7 @@ exports[`<ManageServersRowDropdown /> > renders expected size and icon 1`] = `
>
<svg
aria-hidden="true"
class="svg-inline--fa fa-ellipsis-vertical fa-width-auto "
class="svg-inline--fa fa-ellipsis-vertical fa-width-auto"
data-icon="ellipsis-vertical"
data-prefix="fas"
role="img"
@ -41,7 +41,7 @@ exports[`<ManageServersRowDropdown /> > renders expected size and icon 2`] = `
class="relative inline-block"
>
<button
aria-controls="«rb»"
aria-controls="_r_1l_"
aria-expanded="false"
aria-haspopup="true"
aria-label="Options"
@ -50,7 +50,7 @@ exports[`<ManageServersRowDropdown /> > renders expected size and icon 2`] = `
>
<svg
aria-hidden="true"
class="svg-inline--fa fa-ellipsis-vertical fa-width-auto "
class="svg-inline--fa fa-ellipsis-vertical fa-width-auto"
data-icon="ellipsis-vertical"
data-prefix="fas"
role="img"

View File

@ -4,7 +4,7 @@ import { DEFAULT_SHORT_URLS_ORDERING, setSettings, settingsReducer } from '../..
describe('settingsReducer', () => {
const realTimeUpdates = { enabled: true };
const shortUrlCreation = { validateUrls: false };
const shortUrlCreation = {};
const ui = { theme: 'light' as const };
const visits = { defaultInterval: 'last30Days' as const };
const shortUrlsList = { defaultOrdering: DEFAULT_SHORT_URLS_ORDERING };

View File

@ -1,5 +1,6 @@
import tailwindcss from '@tailwindcss/vite';
import react from '@vitejs/plugin-react';
import { playwright } from '@vitest/browser-playwright';
import { resolve } from 'path';
import { VitePWA } from 'vite-plugin-pwa';
import { defineConfig } from 'vitest/config';
@ -40,7 +41,7 @@ export default defineConfig({
test: {
// Run tests in an actual browser
browser: {
provider: 'playwright',
provider: playwright(),
enabled: true,
headless: true,
screenshotFailures: false,
@ -63,7 +64,7 @@ export default defineConfig({
// Required code coverage. Lower than this will make the check fail
thresholds: {
statements: 95,
branches: 95,
branches: 89, // FIXME Increase to 95 again. It dropped after updating to vitest 4
functions: 95,
lines: 95,
},