From 06cbaf8e2cab9981e72c942068c084714bf3b360 Mon Sep 17 00:00:00 2001 From: Alexander Date: Sun, 1 Oct 2023 16:02:34 +0500 Subject: [PATCH] Deprecate old parameter parsing mechanism --- examples/common/params.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/examples/common/params.js b/examples/common/params.js index 0fd6b50..9e28a6a 100644 --- a/examples/common/params.js +++ b/examples/common/params.js @@ -53,6 +53,9 @@ export const Parser = { string: v => v?.toString(), } +/** + * @deprecated Use Settings instead (CommonBootstrapSettings for example) + */ export function parse(def = {}) { const urlSearchParams = new URLSearchParams(window.location.search); const params = Object.fromEntries(urlSearchParams.entries()); @@ -109,6 +112,9 @@ export function parse(def = {}) { }, {}); } +/** + * @deprecated Use Settings instead (CommonBootstrapSettings for example) + */ export function parseSettings(config) { const urlSearchParams = new URLSearchParams(window.location.search); const params = Object.fromEntries(urlSearchParams.entries());