Skip to content

Commit

Permalink
SHARED:VKT(Frontend): Update dependencies for useNavigationPrompt, ta…
Browse files Browse the repository at this point in the history
…ke into use in VKT [deploy]
  • Loading branch information
pkoivisto committed Sep 11, 2024
1 parent 599216a commit 9e2ef00
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 5 deletions.
5 changes: 5 additions & 0 deletions frontend/packages/shared/CHANGELOG.MD
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,11 @@ and this project adheres to [Semantic Versioning](http://semver.org/).

## [Released]

## [1.11.0] - 2024-09-11

### Changed
- Updated react-router-dom, causing changes to useNavigationBlocker

## [1.10.7] - 2024-08-07

### Added
Expand Down
2 changes: 1 addition & 1 deletion frontend/packages/shared/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@opetushallitus/kieli-ja-kaantajatutkinnot.shared",
"version": "1.10.7",
"version": "1.11.0",
"description": "Shared Frontend Package",
"exports": {
"./components": "./src/components/index.tsx",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { useCallback, useEffect } from 'react';
import { Location, unstable_useBlocker as useBlocker } from 'react-router-dom';
import { Location, useBlocker } from 'react-router-dom';

export const useNavigationProtection = (
when: boolean,
Expand Down
2 changes: 1 addition & 1 deletion frontend/packages/vkt/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,6 @@
},
"dependencies": {
"reduxjs-toolkit-persist": "^7.2.1",
"shared": "npm:@opetushallitus/kieli-ja-kaantajatutkinnot.shared@1.10.7"
"shared": "npm:@opetushallitus/kieli-ja-kaantajatutkinnot.shared@1.11.0"
}
}
4 changes: 2 additions & 2 deletions frontend/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2697,7 +2697,7 @@ __metadata:
languageName: unknown
linkType: soft

"@opetushallitus/kieli-ja-kaantajatutkinnot.shared@workspace:packages/shared, shared@npm:@opetushallitus/kieli-ja-kaantajatutkinnot.shared@1.10.7":
"@opetushallitus/kieli-ja-kaantajatutkinnot.shared@workspace:packages/shared, shared@npm:@opetushallitus/kieli-ja-kaantajatutkinnot.shared@1.11.0":
version: 0.0.0-use.local
resolution: "@opetushallitus/kieli-ja-kaantajatutkinnot.shared@workspace:packages/shared"
languageName: unknown
Expand All @@ -2708,7 +2708,7 @@ __metadata:
resolution: "@opetushallitus/kieli-ja-kaantajatutkinnot.vkt@workspace:packages/vkt"
dependencies:
reduxjs-toolkit-persist: "npm:^7.2.1"
shared: "npm:@opetushallitus/kieli-ja-kaantajatutkinnot.shared@1.10.7"
shared: "npm:@opetushallitus/kieli-ja-kaantajatutkinnot.shared@1.11.0"
languageName: unknown
linkType: soft

Expand Down

0 comments on commit 9e2ef00

Please sign in to comment.