[TikiWiki-commits] [Git][tikiwiki/tiki][master] [REF][REM] Replace deprecated qs with picoquery in the Javascript build system

"Camile \(@camilevahviraki\) via TikiWiki-cvs" <[email protected]>
Newsgroups gmane.comp.cms.tiki.cvs
Message-ID <69d82507949f_3b19332c275ed@gitlab-sidekiq-low-urgency-cpu-bound-v2-d5f7cf479-lc5x8.mail>

Camile pushed to branch master at Tiki Wiki CMS Groupware / Tiki


Commits:
82f884c5 by Camile at 2026-04-09T22:08:14+00:00
[REF][REM] Replace deprecated qs with picoquery in the Javascript build system
---
* [REF][REM] Replace qs with picoquery in js build system

See merge request tikiwiki/tiki!9986

- - - - -


3 changed files:

- package-lock.json
- src/js/vue-mf/kanban/package.json
- src/js/vue-mf/kanban/src/api/kanban.js


Changes:

=====================================
package-lock.json
=====================================
@@ -5825,6 +5825,7 @@
             "version": "1.0.4",
             "resolved": "https://registry.npmjs.org/call-bound/-/call-bound-1.0.4.tgz",
             "integrity": "sha512-+ys997U96po4Kx/ABpBCqhA9EuxJaQWDQg7295H4hBphv3IZg0boBKuwYpt4YXp6MZ5AmZQnU/tyMTlRpaSejg==",
+            "dev": true,
             "license": "MIT",
             "dependencies": {
                 "call-bind-apply-helpers": "^1.0.2",
@@ -12356,6 +12357,7 @@
             "version": "1.13.4",
             "resolved": "https://registry.npmjs.org/object-inspect/-/object-inspect-1.13.4.tgz",
             "integrity": "sha512-W67iLl4J2EXEGTbfeHCffrjDfitvLANg0UlX3wFUUSTx92KXRFegMHUVgSqE+wvhAbi4WqjGg9czysTV2Epbew==",
+            "dev": true,
             "license": "MIT",
             "engines": {
                 "node": ">= 0.4"
@@ -12804,6 +12806,12 @@
                 "url": "https://github.com/sponsors/jonschlinkert"
             }
         },
+        "node_modules/picoquery": {
+            "version": "2.5.0",
+            "resolved": "https://registry.npmjs.org/picoquery/-/picoquery-2.5.0.tgz",
+            "integrity": "sha512-j1kgOFxtaCyoFCkpoYG2Oj3OdGakadO7HZ7o5CqyRazlmBekKhbDoUnNnXASE07xSY4nDImWZkrZv7toSxMi/g==",
+            "license": "MIT"
+        },
         "node_modules/pidtree": {
             "version": "0.6.0",
             "resolved": "https://registry.npmjs.org/pidtree/-/pidtree-0.6.0.tgz",
@@ -13339,21 +13347,6 @@
             "dev": true,
             "license": "MIT"
         },
-        "node_modules/qs": {
-            "version": "6.15.0",
-            "resolved": "https://registry.npmjs.org/qs/-/qs-6.15.0.tgz",
-            "integrity": "sha512-mAZTtNCeetKMH+pSjrb76NAM8V9a05I9aBZOHztWy/UqcJdQYNsf59vrRKWnojAT9Y+GbIvoTBC++CPHqpDBhQ==",
-            "license": "BSD-3-Clause",
-            "dependencies": {
-                "side-channel": "^1.1.0"
-            },
-            "engines": {
-                "node": ">=0.6"
-            },
-            "funding": {
-                "url": "https://github.com/sponsors/ljharb"
-            }
-        },
         "node_modules/quansync": {
             "version": "0.2.11",
             "resolved": "https://registry.npmjs.org/quansync/-/quansync-0.2.11.tgz",
@@ -14162,6 +14155,7 @@
             "version": "1.1.0",
             "resolved": "https://registry.npmjs.org/side-channel/-/side-channel-1.1.0.tgz",
             "integrity": "sha512-ZX99e6tRweoUXqR+VBrslhda51Nh5MTQwou5tnUDgbtyM0dBgmhEDtWGP/xbKn6hqfPRHujUNwz5fy/wbbhnpw==",
+            "dev": true,
             "license": "MIT",
             "dependencies": {
                 "es-errors": "^1.3.0",
@@ -14181,6 +14175,7 @@
             "version": "1.0.0",
             "resolved": "https://registry.npmjs.org/side-channel-list/-/side-channel-list-1.0.0.tgz",
             "integrity": "sha512-FCLHtRD/gnpCiCHEiJLOwdmFP+wzCmDEkc9y7NsYxeF4u7Btsn1ZuwgwJGxImImHicJArLP4R0yX4c2KCrMrTA==",
+            "dev": true,
             "license": "MIT",
             "dependencies": {
                 "es-errors": "^1.3.0",
@@ -14197,6 +14192,7 @@
             "version": "1.0.1",
             "resolved": "https://registry.npmjs.org/side-channel-map/-/side-channel-map-1.0.1.tgz",
             "integrity": "sha512-VCjCNfgMsby3tTdo02nbjtM/ewra6jPHmpThenkTYh8pG9ucZ/1P8So4u4FGBek/BjpOVsDCMoLA/iuBKIFXRA==",
+            "dev": true,
             "license": "MIT",
             "dependencies": {
                 "call-bound": "^1.0.2",
@@ -14215,6 +14211,7 @@
             "version": "1.0.2",
             "resolved": "https://registry.npmjs.org/side-channel-weakmap/-/side-channel-weakmap-1.0.2.tgz",
             "integrity": "sha512-WPS/HvHQTYnHisLo9McqBHOJk2FkHO/tlpvldyrnem4aeQp4hai3gythswg6p01oSoTl58rcpiFAjF2br2Ak2A==",
+            "dev": true,
             "license": "MIT",
             "dependencies": {
                 "call-bound": "^1.0.2",
@@ -17042,7 +17039,7 @@
                 "@casl/ability": "^6.7.1",
                 "autosize": "^6.0.1",
                 "axios": "^1.7.5",
-                "qs": "^6.12.1",
+                "picoquery": "^2.5.0",
                 "vee-validate": "^4.13.1",
                 "vue-final-modal": "^4.5.4",
                 "vue-toastification": "^2.0.0-rc.5",


=====================================
src/js/vue-mf/kanban/package.json
=====================================
@@ -19,7 +19,7 @@
     "@casl/ability": "^6.7.1",
     "autosize": "^6.0.1",
     "axios": "^1.7.5",
-    "qs": "^6.12.1",
+    "picoquery": "^2.5.0",
     "vee-validate": "^4.13.1",
     "vue-final-modal": "^4.5.4",
     "vue-toastification": "^2.0.0-rc.5",


=====================================
src/js/vue-mf/kanban/src/api/kanban.js
=====================================
@@ -1,5 +1,5 @@
 import axios from "axios";
-import qs from "qs";
+import { stringify } from "picoquery";
 import store from "../store";
 
 //Strip the last fragment of the path, and appends the api path.
@@ -13,7 +13,7 @@ const api = axios.create({
 // Add api method here
 export default {
     createBoard: function ({ trackerId, itemId }, payload) {
-        return api.post(`/trackers/${trackerId}/`, qs.stringify(payload), {
+        return api.post(`/trackers/${trackerId}/`, stringify(payload), {
             headers: {
                 Authorization: `Bearer ${store.getters.getAccessToken}`,
             },
@@ -22,21 +22,21 @@ export default {
     createItem: function ({ trackerId }, payload) {
         // Sample
         // fields[fieldPermName]=value&fields[anotherFieldPermName]=anotherValue
-        return api.post(`/trackers/${trackerId}/items`, qs.stringify(payload, { encode: false }), {
+        return api.post(`/trackers/${trackerId}/items`, stringify(payload, { encode: false }), {
             headers: {
                 Authorization: `Bearer ${store.getters.getAccessToken}`,
             },
         });
     },
     getItem: function ({ trackerId, itemId }, payload) {
-        return api.get(`/trackers/${trackerId}/items/${itemId}`, qs.stringify(payload), {
+        return api.get(`/trackers/${trackerId}/items/${itemId}`, stringify(payload), {
             headers: {
                 Authorization: `Bearer ${store.getters.getAccessToken}`,
             },
         });
     },
     setItem: function ({ trackerId, itemId }, payload) {
-        return api.post(`/trackers/${trackerId}/items/${itemId}`, qs.stringify(payload, { encode: false }), {
+        return api.post(`/trackers/${trackerId}/items/${itemId}`, stringify(payload, { encode: false }), {
             headers: {
                 Authorization: `Bearer ${store.getters.getAccessToken}`,
             },
@@ -50,14 +50,14 @@ export default {
         });
     },
     getField: function ({ trackerId, fieldId }, payload) {
-        return api.get(`/trackers/${trackerId}/fields/${fieldId}`, qs.stringify(payload), {
+        return api.get(`/trackers/${trackerId}/fields/${fieldId}`, stringify(payload), {
             headers: {
                 Authorization: `Bearer ${store.getters.getAccessToken}`,
             },
         });
     },
     setField: function ({ trackerId, fieldId }, payload) {
-        return api.post(`/trackers/${trackerId}/fields/${fieldId}`, qs.stringify(payload), {
+        return api.post(`/trackers/${trackerId}/fields/${fieldId}`, stringify(payload), {
             headers: {
                 Authorization: `Bearer ${store.getters.getAccessToken}`,
             },



View it on GitLab: https://gitlab.com/tikiwiki/tiki/-/commit/82f884c51ff815d9185840db391768cd2d86db60

-- 
View it on GitLab: https://gitlab.com/tikiwiki/tiki/-/commit/82f884c51ff815d9185840db391768cd2d86db60
You're receiving this email because of your account on gitlab.com. Manage all notifications: https://gitlab.com/-/profile/notifications | Help: https://gitlab.com/help

_______________________________________________
TikiWiki-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tikiwiki-cvs
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.