mirror of
https://github.com/dzeiocom/libs.git
synced 2025-04-22 10:52:11 +00:00
Deprecated not url related functions (#21)
Signed-off-by: Avior <florian.bouillon@delta-wings.net>
This commit is contained in:
parent
589738dcbc
commit
c711f5526e
@ -6,6 +6,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|||||||
|
|
||||||
## [Unreleased]
|
## [Unreleased]
|
||||||
|
|
||||||
|
### Deprecated
|
||||||
|
|
||||||
|
- not URL related functions ([#21](https://github.com/dzeiocom/libs/issues/21))
|
||||||
|
|
||||||
## [1.0.4] - 2020-11-23
|
## [1.0.4] - 2020-11-23
|
||||||
|
|
||||||
### Added
|
### Added
|
||||||
|
@ -33,6 +33,7 @@ export default class URLManager {
|
|||||||
/**
|
/**
|
||||||
* Make a new URLManager from the current location
|
* Make a new URLManager from the current location
|
||||||
* @return { this }
|
* @return { this }
|
||||||
|
* @deprecated use `new URLManager(window.location)`
|
||||||
*/
|
*/
|
||||||
public static fromLocation() {
|
public static fromLocation() {
|
||||||
return new URLManager(window.location)
|
return new URLManager(window.location)
|
||||||
@ -40,6 +41,7 @@ export default class URLManager {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Reload the window
|
* Reload the window
|
||||||
|
* @deprecated use `window.location.reload()`
|
||||||
*/
|
*/
|
||||||
public static reload() {
|
public static reload() {
|
||||||
window.location.reload()
|
window.location.reload()
|
||||||
@ -296,6 +298,7 @@ export default class URLManager {
|
|||||||
/**
|
/**
|
||||||
* Go to the page built
|
* Go to the page built
|
||||||
* @param {boolean} reload is normal push or history only push
|
* @param {boolean} reload is normal push or history only push
|
||||||
|
* @deprecated use `window.location.href = url.toString()` or `window.history.pushState(undefined, document.head.title, url.toString())`
|
||||||
*/
|
*/
|
||||||
public go(reload = true) {
|
public go(reload = true) {
|
||||||
if (reload) {
|
if (reload) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user