From 6bc764cd2a9d7bddc9de5cbffe80b3ccbf378361 Mon Sep 17 00:00:00 2001 From: Alejandro Celaya Date: Mon, 12 Aug 2024 09:33:05 +0200 Subject: [PATCH] Add support for IP-address redirect conditions from Shlink 4.2 --- CHANGELOG.md | 4 ++-- src/api-contract/types.ts | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index daa1ee2..7262643 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,9 +4,9 @@ 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). -## [Unreleased] +## [1.2.0] - 2024-08-13 ### Added -* *Nothing* +* Add support for `ip-address` redirect condition type. ### Changed * Update JS coding standard and migrate to ESLint flat config. diff --git a/src/api-contract/types.ts b/src/api-contract/types.ts index a0b1929..f8c6c06 100644 --- a/src/api-contract/types.ts +++ b/src/api-contract/types.ts @@ -227,7 +227,7 @@ export type ShlinkShortUrlsListParams = { excludePastValidUntil?: boolean; }; -export type ShlinkRedirectConditionType = 'device' | 'language' | 'query-param'; +export type ShlinkRedirectConditionType = 'device' | 'language' | 'query-param' | 'ip-address'; export type ShlinkRedirectCondition = { type: ShlinkRedirectConditionType;