⚡️ A request library for Vue 3. 一个能轻松帮你管理请求状态的 Vue 3 请求库。欢迎使用~

Overview

English | 简体中文

VueRequest logo

VueRequest

⚡️ A request library for Vue 3.

Coverage Status Size Version Languages License

Status: Beta

Features

  • 🚀 All data is reactive
  • 🔄 Interval polling
  • 🤖 Automatic error retry
  • 🗄 Built-in cache
  • 📠 Written in TypeScript
  • 🍃 Lightweight
  • 📦 Out of the box
  • 🔥 Interactive docs

Documentation

Install

npm install vue-request@beta

# or with yarn
yarn add vue-request@beta

CDN

<script src="https://unpkg.com/vue-request@beta"></script>

It will be exposed to global as window.VueRequest.useRequest

Usage

import { useRequest } from 'vue-request';

export default {
  setup() {
    const { data } = useRequest('api/user');
    return () => <div>{data.value}</div>;
  },
};

TODO List

If you have any cool features, please submit an issue for discussion

  • Documentation
  • Pagination
  • Load More
  • Support Vue 2

Thanks

Thank them for inspiring us.

License

MIT License © 2020-present AttoJS

Comments
  • antdv 分页配置

    antdv 分页配置

    问题描述 Problem Description

    在使用 usePagination 方法是如何配置pages、total等字段映射。

    在使用antdv table 的加载远程数据时推荐用到 vue-request 插件,想着可以自动控制加载状态和分页操作也挺好的。但是配置加载完数据之后分页信息配置不上 我百度了很久 也尝试做了一些配置 ,实在是没找到怎么配置totls和pages等信息的方法。无奈 来到这里寻求帮互助 先行答谢有缘人了

    antdv 例子:

    其他信息 Other information

    import { usePagination } from "vue-request";
    import _api from "@http/api";
    import {
      computed,
      defineComponent,
      onBeforeUnmount,
      onMounted,
      reactive,
      ref,
      watch,
      inject,
    } from "vue";
    import { useStore } from "vuex";
    import { useRouter, useRoute } from "vue-router";
    export default {
      name: "menu-bs",
      setup(props, context) {
        const store = useStore();
        const router = useRouter();
    
        const columns = [
          {
            title: "Name",
            dataIndex: "name",
            sorter: true,
            width: "20%",
          },
          {
            title: "Gender",
            dataIndex: "gender",
            filters: [
              {
                text: "Male",
                value: "male",
              },
              {
                text: "Female",
                value: "female",
              },
            ],
            width: "20%",
          },
          {
            title: "Email",
            dataIndex: "email",
          },
        ];
    
        const queryPageData = _api.menuApiModules.page;
    
        const {
          data: dataSource,
          run,
          loading,
          total,
          current,
          pageSize,
        } = usePagination(queryPageData, {
          formatResult: (res) => {
            return res.data.data.records
          },
          pagination: {
            currentKey: "pageNum",
            pageSizeKey: "pageSize",
            totalKey: "res.data.data.total"
          },
        });
    
    
        const pagination = computed(() => ({
          total: total.value,
          current: current.value,
          pageSize: pageSize.value,
          hideOnSinglePage: true,
        }));
    
        const handleTableChange = (pag, filters, sorter) => {
          run({
            results: pag.pageSize,
            page: pag?.current,
            sortField: sorter.field,
            sortOrder: sorter.order,
            ...filters,
          });
        };
    
        return {
          dataSource,
          pagination,
          loading,
          columns,
          handleTableChange,
        };
      },
    };
    

    我的数据是这样的

    {
      "code": 200,
      "data": {
        "records": [
          {
           ```数据对象```
          },
        ],
        "total": 12,
        "size": 10,
        "current": 1,
        "orders": [],
        "optimizeCountSql": true,
        "searchCount": true,
        "countId": null,
        "maxLimit": null,
        "pages": 2
      },
      "msg": "菜单数据分页查询成功"
    }
    

    vue devtools 截图 image

    question 
    opened by fc88804DOTcn 11
  • [Need Help]v2的两个优化问题

    [Need Help]v2的两个优化问题

    v2的两个俩问题 1.index.d.ts 里面的 type Options 能不能导出 便于引用 二次封装自己请求函数。 2.缓存时现在是完全基于的cacheKey 进行缓存 我想基于cacheKey加请求参数去做缓存 应该怎么搞,用自定义的setCache 方法可以实现么,主要使用场景是 三级联动选择框组件,初始化时请求同一个接口,但是父级id不一样 我现在是manual设置为true 然后依次调用三次runAsync({id:praentId}),因为设置了是同一个封装request方法同一个cacheKey,结果拿到的数据从缓存取了。

    Originally posted by @yuntian001 in https://github.com/AttoJS/vue-request/issues/121#issuecomment-1153716460

    Feature Request 2.x 
    opened by yuntian001 10
  • [Need Help] 使用useLoadMore时碰到的传参问题

    [Need Help] 使用useLoadMore时碰到的传参问题

    问题描述 Problem Description

    在不使用defaultParams的情况下,直接使用run进行传参数。这个时候使用refresh或者loadMore,请求参数没做保留。 请问怎么解决这个问题。(第一次写vue 就选择了大佬的hook请求库 小白还有很多不明白的)

    其他信息 Other information

    question 
    opened by yhf1414104530 10
  • 关于在 setup 方法外部使用 useRequest 的实现探索

    关于在 setup 方法外部使用 useRequest 的实现探索

    需求描述 Feature Description

    目前 useRequest 只能在 setup 内部使用,但是 Vue 3.2 中新增的 EffectScope 给 useRequest 在组件外部使用增加了可能,在结合 vueuse#tryOnUnmounted 类似的实现,我想是不是可以提供一个 dispose 方法,以面对在setup方法外部使用 useRequest 的场景,让用户可以手动去解除监听和释放内存

    Feature Request 
    opened by keuby 10
  • 关于返回结果的疑问

    关于返回结果的疑问

    问题描述 Problem Description

    刚刚尝试使用vue-request@next,发现返回的结果是一个联合类型,没法进行解构,有没有什么方式能正常解构结果而不报错吗?

    export const getClientDetail = (params: {
      clientId: number | null
    }) => request.get<{
      client: Record<string, any>
      contracts: any[]
      tax: {
        serviceTaxStatus: number
      }
    }>('/wb/getClient', params)
    
    
    const { runAsync, data } = useRequest(getClientDetail, {
      defaultParams:[{
        clientId: props.clientId
      }],
      manual: true
    })
    
    runAsync({
      clientId: props.clientId
    }).then((res)=>{
      res?.data.client
      const {data} = res
    })
    

    image

    其他信息 Other information

    feature 2.x 
    opened by guohui666 9
  • 除了run函数外,能不能像ahooks一样返回一个Promise的异步函数,用于自己捕获异常,目前run函数返回的promise的catch捕获不到异常,只有在onError中才能捕获到异常

    除了run函数外,能不能像ahooks一样返回一个Promise的异步函数,用于自己捕获异常,目前run函数返回的promise的catch捕获不到异常,只有在onError中才能捕获到异常

    const { loading, runAsync } = useRequest(dosomething, { manual: true, });

    const onClick = async () => { try { await runAsync(state); doOther() } catch (error) { message.error(error.message); } };

    feature 2.x 
    opened by Mrzbf 8
  • 在使用 vue-request 之后的一些改进建议

    在使用 vue-request 之后的一些改进建议

    最近我们做了个新项目选用了 vue3,也使用了 vue-request 这个库,目前使用一个多月了,有一些建议我觉得可以讨论一下

    暴露更多的内部 API和类型

    目前我们项目使用这个库,都是无法直接使用的,需要进行二次封装,这个因为发送请求的多变性而没办法避免的,进行二次封装的时候我遇到了一些问题,有下面一些建议。

    1. 把一些类型声名 例如 BaseOption 这种在 index.ts 里面暴露出来,方便引入
    2. 把尽可能多的常量(例如QUERY_DEFAULT_KEY),内部方法(例如useAsyncQuery)在 index.ts 中暴露出来,方便自己实现一些自定义的逻辑
    3. 提供一些全局的 hooks 用于实现一些自定义的逻辑,例如只要有一个请求变为 loading 的时候,触发一个比如叫 beforeAnyLoading 的钩子,所有请求都加载完触发一个 afterAllLoaded 钩子,可以很方便的实现一些例如

    说实话我感觉用这个库的时候,二次封装的可能性非常大,我觉得作者大大可以多考虑一下二次封装的便捷性。

    ---------------------------分割线,下面可能是一些废话,作者大大可以考虑跳过,主要结论都在上面--------------------------

    useRequest 的封装

    我希望在发送请求的时候,如果请求时间过长超过 loadingDelay 的值的时候,在全局显示一个加载,遇到我问题如下

    1. 我需要对 useRequest 的第二个参数进行扩展,例如再传入一个参数用于设置 loading 的提示语,那么需要把例如 BaseOptions进行扩展,但是导入的时候,我得从 vue-request/dist/types/core/config 里面进行导入,这很不友好。希望可以在 index.ts 直接导出
    2. 我无法再 loading 变为 true 之前和 loading 变为 false 之前做一些操作,目前我只能使用 watchEffect 来监听 loading 的变化来实现这个功能。

    useLoadMore 的封装

    因为加载更多这个逻辑,一个系统的类型肯定是一样的,如果不进行二次封装,那么每次使用的时候都会写一大堆类型声明,这样肯定不合适。二次封装的时候一些问题如下

    1. 导入类型太麻烦(x2 [手动狗头.png]),上面已经提到了
    2. formatResult 这个东西类型推导有问题,我二次封装的时候直接把这个功能砍掉了。而且我觉得这个功能意义不大,format 这个操作完全可以放到传入的 service 方法里面来做,不知道作者有没有其他的考虑[手动狗头.png]。
    3. loadingMore 在 reload 的时候是 false,这样的话就 reload 的时候,van-list 就没有 loading 动画了,所以就自己撸了一个,从而引出了下面一系列问题。(因为项目上线在即没办法和作者大大讨论再改,也不想给作者大大压力,咱们自己的需求还是自己解决,不过接口都是一样的,要是作者大大后续考虑支持的话,我直接把内部实现换成作者大大的 useLoadMore 就好了)

    -----------下面是自己封装 useLoadMore 出现的问题----------

    1. 因为作者大大没有暴露 useAsyncQuery,所以就只能基于 useRequest 了(强烈建议多暴露一写内部方法)
    2. 开始一切顺利,不过在 reload 方法的时候,需要对数据重置,直接对 useRequest 返回值解构出来的 data 进行复制为 null 是不起作用的(看了源码发现 data 的值总是 latestQuery.value.data,赋值还是会被改回来),然后看到好像有个 reset 但是发现 useRequest 这个方法没导出 reset,然后想通过 queries 重置发现 QUERY_DEFAULT_KEY 这个常量没导出,最后我直接用 __QUERY_DEFAULT_KEY__ 这个玩意儿来获取默认 query,调用 mutate 来重置了。(饶了好大一个弯儿)。
    3. 如果暴露出 useAsyncQuery,上面那一步的东西都不存在

    hooks 的设想

    对于发送请求这个需求,应该会有很多的奇奇怪怪的需求,如果可以抽象出来一些公用的 hooks,应该可以解决很多自定义的需求,例如上面我对 useRequest 进行封装,在请求超过 loadingDelay 的时候,全局显示 loading,如果有一个 hook,只要有一个请求变为 loading 的时候,触发一个比如叫 beforeAnyLoading 的钩子,然后我就给他显示一个 loading 动画,然后有个 afterAllLoaded,然后我把 loading 动画关掉,这就很完美。

    discussion 
    opened by keuby 8
  • [Need Help] const { data } = useRequest(testService},data有ref类型的值,但是data.value是undefined

    [Need Help] const { data } = useRequest(testService},data有ref类型的值,但是data.value是undefined

    问题描述 Problem Description

    <template>
      <div v-for="item in list" :key="item.id">
        {{ item.name }}
      </div>
    </template>
    
    <script lang="ts" setup>
    import axios from "axios";
    import { computed } from "vue";
    import { useRequest } from "vue-request";
    
    function testService(params: { page?: number; limit?: number }) {
      return axios.get("https://61273138c2e8920017bc0b3c.mockapi.io/api/users", {
        params,
      });
    }
    
    const { data } = useRequest(testService, {
      defaultParams: [
        {
          limit: 5,
        },
      ],
    });
    
    console.log(data); // 有值
    console.log(data.value); // undefined
    const list = computed(() => data.value?.data.data || []); // 因为data.value为undefined,所以list也就是[]
    </script>
    

    我这段代码基本就是从您的例子中粘贴过来的,看了很久的文档,一直拿不到正确的值,我不知道我错在哪里,请您指导一下,非常感谢 image

    question 
    opened by wanliyunyan 7
  • 关于取值的问题

    关于取值的问题

    通过 useRequest 拿到的值,怎么都获取不到

    我使用 函数 的方式使用 useRequest,但是我的接口返回的数据是一个对象类型的,我使用 data ,怎么都获取不到我的数据。

    我能请求到,这样写也没问题 code1 console1

    但是当我想去其中的某一项时,他就会报错 code2 console2

    不论我使用什么方式去取这个 data 对象下的数据,始终都无法取到,请问是我取的方式不对吗?求指点。

    question 
    opened by matrix-zyh 7
  • [Need Help]请问如何使data正确显示经过formatResult处理过的ts类型

    [Need Help]请问如何使data正确显示经过formatResult处理过的ts类型

    我继承并重写了axios.get方法,使他返回类型如下 image image 在调用业务接口的时候如下使用 image findDataSetListByUserId4Select现在返回的类型是我期待的Promis<BusinessResponseData<(SelfDataSetPreviewParams | SqlDataSetPreviewParams)[]>>这些没有问题 vuerequest全局配置如下 image 在vue组件中这样使用 image 我希望data的类型应该是经过formatResult转换过的(SelfDataSetPreviewParams | SqlDataSetPreviewParams)[]但实际上他是BusinessResponseData<(SelfDataSetPreviewParams | SqlDataSetPreviewParams)[]>,请问怎么能让data的类型正确显示为(SelfDataSetPreviewParams | SqlDataSetPreviewParams)[]

    question 2.x 
    opened by web-zhangbo 7
  • 无法正确的拿到data值

    无法正确的拿到data值

    Bug 描述 Bug description

    打印data为undefined

    代码重现 Reproduce

    const { data, loading } = useRequest(APICESHI); console.log(data.value);

    期望结果 Desired result

    可以拿到data的值

    其他信息 Other information

    opened by 99414041 7
  • [Feature Request]: added option to use `ref` instead of `shallowRef` for `data` in `vue-request@next`

    [Feature Request]: added option to use `ref` instead of `shallowRef` for `data` in `vue-request@next`

    需求描述 Feature Description

    sometimes there are cases where the request to update some properties from the results returned from data (data that knows for sure has been updated.. for example the number of likes returned from another request) will be is a huge cost to reassign the entire data because vue will recalculate all that is involved in it even though there is so little change

    i could use v-memo or create another wrap similar to dataR with watchEffect but there is no reason to waste memory like that when we just need to add an option

    建议的解决方案 Proposed Solution

    added option to use ref instead of shallowRef for data in vue-request@next example fullRef: true

    - const data = shallowRef()
    + const data = fullRef ? ref() : shallowRef()
    

    其他信息 Other information

    opened by tachib-shin 0
  • build(deps): bump qs from 6.5.2 to 6.5.3

    build(deps): bump qs from 6.5.2 to 6.5.3

    Bumps qs from 6.5.2 to 6.5.3.

    Changelog

    Sourced from qs's changelog.

    6.5.3

    • [Fix] parse: ignore __proto__ keys (#428)
    • [Fix] utils.merge: avoid a crash with a null target and a truthy non-array source
    • [Fix] correctly parse nested arrays
    • [Fix] stringify: fix a crash with strictNullHandling and a custom filter/serializeDate (#279)
    • [Fix] utils: merge: fix crash when source is a truthy primitive & no options are provided
    • [Fix] when parseArrays is false, properly handle keys ending in []
    • [Fix] fix for an impossible situation: when the formatter is called with a non-string value
    • [Fix] utils.merge: avoid a crash with a null target and an array source
    • [Refactor] utils: reduce observable [[Get]]s
    • [Refactor] use cached Array.isArray
    • [Refactor] stringify: Avoid arr = arr.concat(...), push to the existing instance (#269)
    • [Refactor] parse: only need to reassign the var once
    • [Robustness] stringify: avoid relying on a global undefined (#427)
    • [readme] remove travis badge; add github actions/codecov badges; update URLs
    • [Docs] Clean up license text so it’s properly detected as BSD-3-Clause
    • [Docs] Clarify the need for "arrayLimit" option
    • [meta] fix README.md (#399)
    • [meta] add FUNDING.yml
    • [actions] backport actions from main
    • [Tests] always use String(x) over x.toString()
    • [Tests] remove nonexistent tape option
    • [Dev Deps] backport from main
    Commits
    • 298bfa5 v6.5.3
    • ed0f5dc [Fix] parse: ignore __proto__ keys (#428)
    • 691e739 [Robustness] stringify: avoid relying on a global undefined (#427)
    • 1072d57 [readme] remove travis badge; add github actions/codecov badges; update URLs
    • 12ac1c4 [meta] fix README.md (#399)
    • 0338716 [actions] backport actions from main
    • 5639c20 Clean up license text so it’s properly detected as BSD-3-Clause
    • 51b8a0b add FUNDING.yml
    • 45f6759 [Fix] fix for an impossible situation: when the formatter is called with a no...
    • f814a7f [Dev Deps] backport from main
    • Additional commits viewable in compare view

    Dependabot compatibility score

    Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


    Dependabot commands and options

    You can trigger Dependabot actions by commenting on this PR:

    • @dependabot rebase will rebase this PR
    • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
    • @dependabot merge will merge this PR after your CI passes on it
    • @dependabot squash and merge will squash and merge this PR after your CI passes on it
    • @dependabot cancel merge will cancel a previously requested merge and block automerging
    • @dependabot reopen will reopen this PR if it is closed
    • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
    • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
    • @dependabot use these labels will set the current labels as the default for future PRs for this repo and language
    • @dependabot use these reviewers will set the current reviewers as the default for future PRs for this repo and language
    • @dependabot use these assignees will set the current assignees as the default for future PRs for this repo and language
    • @dependabot use this milestone will set the current milestone as the default for future PRs for this repo and language

    You can disable automated security fix PRs for this repo from the Security Alerts page.

    dependencies 
    opened by dependabot[bot] 0
  • build(deps-dev): bump simple-git from 3.5.0 to 3.15.0

    build(deps-dev): bump simple-git from 3.5.0 to 3.15.0

    Bumps simple-git from 3.5.0 to 3.15.0.

    Release notes

    Sourced from simple-git's releases.

    [email protected]

    Minor Changes

    • 7746480: Disables the use of inline configuration arguments to prevent unitentionally allowing non-standard remote protocols without explicitly opting in to this practice with the new allowUnsafeProtocolOverride property having been enabled.

    Patch Changes

    • 7746480: - Upgrade repo dependencies - lerna and jest
      • Include node@19 in the test matrix

    [email protected]

    Patch Changes

    • 5a2e7e4: Add version parsing support for non-numeric patches (including "built from source" style 1.11.GIT)

    [email protected]

    Minor Changes

    • 19029fc: Create the abort plugin to allow cancelling all pending and future tasks.
    • 4259b26: Add .version to return git version information, including whether the git binary is installed.

    [email protected]

    Minor Changes

    • 87b0d75: Increase the level of deprecation notices for use of simple-git/promise, which will be fully removed in the next major
    • d0dceda: Allow supplying just one of to/from in the options supplied to git.log

    Patch Changes

    • 6b3e05c: Use shared test utilities bundle in simple-git tests, to enable consistent testing across packages in the future

    [email protected]

    Minor Changes

    • bfd652b: Add a new configuration option to enable trimming white-space from the response to git.raw

    [email protected]

    Minor Changes

    • 80d54bd: Added fields updated + deleted branch info to fetch response, closes #823

    Patch Changes

    • 75dfcb4: Add prettier configuration and apply formatting throughout.

    [email protected]

    Minor Changes

    • 2f021e7: Support for importing as an ES module with TypeScript moduleResolution node16 or newer by adding simpleGit as a named export.

    ... (truncated)

    Changelog

    Sourced from simple-git's changelog.

    3.15.0

    Minor Changes

    • 7746480: Disables the use of inline configuration arguments to prevent unitentionally allowing non-standard remote protocols without explicitly opting in to this practice with the new allowUnsafeProtocolOverride property having been enabled.

    Patch Changes

    • 7746480: - Upgrade repo dependencies - lerna and jest
      • Include node@19 in the test matrix

    3.14.1

    Patch Changes

    • 5a2e7e4: Add version parsing support for non-numeric patches (including "built from source" style 1.11.GIT)

    3.14.0

    Minor Changes

    • 19029fc: Create the abort plugin to allow cancelling all pending and future tasks.
    • 4259b26: Add .version to return git version information, including whether the git binary is installed.

    3.13.0

    Minor Changes

    • 87b0d75: Increase the level of deprecation notices for use of simple-git/promise, which will be fully removed in the next major
    • d0dceda: Allow supplying just one of to/from in the options supplied to git.log

    Patch Changes

    • 6b3e05c: Use shared test utilities bundle in simple-git tests, to enable consistent testing across packages in the future

    3.12.0

    Minor Changes

    • bfd652b: Add a new configuration option to enable trimming white-space from the response to git.raw

    3.11.0

    Minor Changes

    • 80d54bd: Added fields updated + deleted branch info to fetch response, closes #823

    Patch Changes

    • 75dfcb4: Add prettier configuration and apply formatting throughout.

    ... (truncated)

    Commits
    • d4764bf Version Packages
    • 7746480 Chore: bump lerna, jest and create prettier workflow (#862)
    • 6b3c631 Create the unsafe plugin to configure how simple-git treats known potenti...
    • e459622 Version Packages
    • 5a2e7e4 Add version parsing support for non-numeric patches (to include built… (#853)
    • 6460a1f Version Packages
    • 4259b26 Create interface for retrieving git version information (#850)
    • 19029fc Abort plugin (#848)
    • ee801ae Version Packages
    • d0dceda Allow using just one of from and to in the git.log options. (#846)
    • Additional commits viewable in compare view

    Dependabot compatibility score

    Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


    Dependabot commands and options

    You can trigger Dependabot actions by commenting on this PR:

    • @dependabot rebase will rebase this PR
    • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
    • @dependabot merge will merge this PR after your CI passes on it
    • @dependabot squash and merge will squash and merge this PR after your CI passes on it
    • @dependabot cancel merge will cancel a previously requested merge and block automerging
    • @dependabot reopen will reopen this PR if it is closed
    • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
    • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
    • @dependabot use these labels will set the current labels as the default for future PRs for this repo and language
    • @dependabot use these reviewers will set the current reviewers as the default for future PRs for this repo and language
    • @dependabot use these assignees will set the current assignees as the default for future PRs for this repo and language
    • @dependabot use this milestone will set the current milestone as the default for future PRs for this repo and language

    You can disable automated security fix PRs for this repo from the Security Alerts page.

    dependencies 
    opened by dependabot[bot] 0
  • build(deps): bump decode-uri-component from 0.2.0 to 0.2.2

    build(deps): bump decode-uri-component from 0.2.0 to 0.2.2

    Bumps decode-uri-component from 0.2.0 to 0.2.2.

    Release notes

    Sourced from decode-uri-component's releases.

    v0.2.2

    • Prevent overwriting previously decoded tokens 980e0bf

    https://github.com/SamVerschueren/decode-uri-component/compare/v0.2.1...v0.2.2

    v0.2.1

    • Switch to GitHub workflows 76abc93
    • Fix issue where decode throws - fixes #6 746ca5d
    • Update license (#1) 486d7e2
    • Tidelift tasks a650457
    • Meta tweaks 66e1c28

    https://github.com/SamVerschueren/decode-uri-component/compare/v0.2.0...v0.2.1

    Commits

    Dependabot compatibility score

    Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


    Dependabot commands and options

    You can trigger Dependabot actions by commenting on this PR:

    • @dependabot rebase will rebase this PR
    • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
    • @dependabot merge will merge this PR after your CI passes on it
    • @dependabot squash and merge will squash and merge this PR after your CI passes on it
    • @dependabot cancel merge will cancel a previously requested merge and block automerging
    • @dependabot reopen will reopen this PR if it is closed
    • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
    • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
    • @dependabot use these labels will set the current labels as the default for future PRs for this repo and language
    • @dependabot use these reviewers will set the current reviewers as the default for future PRs for this repo and language
    • @dependabot use these assignees will set the current assignees as the default for future PRs for this repo and language
    • @dependabot use this milestone will set the current milestone as the default for future PRs for this repo and language

    You can disable automated security fix PRs for this repo from the Security Alerts page.

    dependencies 
    opened by dependabot[bot] 0
  • build(deps): bump loader-utils from 1.4.0 to 1.4.2

    build(deps): bump loader-utils from 1.4.0 to 1.4.2

    Bumps loader-utils from 1.4.0 to 1.4.2.

    Release notes

    Sourced from loader-utils's releases.

    v1.4.2

    1.4.2 (2022-11-11)

    Bug Fixes

    v1.4.1

    1.4.1 (2022-11-07)

    Bug Fixes

    Changelog

    Sourced from loader-utils's changelog.

    1.4.2 (2022-11-11)

    Bug Fixes

    1.4.1 (2022-11-07)

    Bug Fixes

    Commits

    Dependabot compatibility score

    Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


    Dependabot commands and options

    You can trigger Dependabot actions by commenting on this PR:

    • @dependabot rebase will rebase this PR
    • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
    • @dependabot merge will merge this PR after your CI passes on it
    • @dependabot squash and merge will squash and merge this PR after your CI passes on it
    • @dependabot cancel merge will cancel a previously requested merge and block automerging
    • @dependabot reopen will reopen this PR if it is closed
    • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
    • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
    • @dependabot use these labels will set the current labels as the default for future PRs for this repo and language
    • @dependabot use these reviewers will set the current reviewers as the default for future PRs for this repo and language
    • @dependabot use these assignees will set the current assignees as the default for future PRs for this repo and language
    • @dependabot use this milestone will set the current milestone as the default for future PRs for this repo and language

    You can disable automated security fix PRs for this repo from the Security Alerts page.

    dependencies 
    opened by dependabot[bot] 0
  • build(deps): bump minimatch from 3.0.4 to 3.1.2

    build(deps): bump minimatch from 3.0.4 to 3.1.2

    Bumps minimatch from 3.0.4 to 3.1.2.

    Commits

    Dependabot compatibility score

    Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


    Dependabot commands and options

    You can trigger Dependabot actions by commenting on this PR:

    • @dependabot rebase will rebase this PR
    • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
    • @dependabot merge will merge this PR after your CI passes on it
    • @dependabot squash and merge will squash and merge this PR after your CI passes on it
    • @dependabot cancel merge will cancel a previously requested merge and block automerging
    • @dependabot reopen will reopen this PR if it is closed
    • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
    • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
    • @dependabot use these labels will set the current labels as the default for future PRs for this repo and language
    • @dependabot use these reviewers will set the current reviewers as the default for future PRs for this repo and language
    • @dependabot use these assignees will set the current assignees as the default for future PRs for this repo and language
    • @dependabot use this milestone will set the current milestone as the default for future PRs for this repo and language

    You can disable automated security fix PRs for this repo from the Security Alerts page.

    dependencies 
    opened by dependabot[bot] 0
Releases(v1.2.4)
VueJS RESTful client with reactive features. Vue-Chimera is based on axios http client library.

VueJS RESTful client with reactive features. Vue-Chimera is based on axios http client library.

null 167 Jan 3, 2023
The HTTP client for Vue.js

vue-resource The plugin for Vue.js provides services for making web requests and handle responses using a XMLHttpRequest or JSONP. Features Supports t

Pagekit 10.1k Dec 30, 2022
Async computed properties for Vue.js

vue-async-computed With this plugin, you can have computed properties in Vue that are computed asynchronously. Without using this plugin, you can't do

Benjamin Fox 1.1k Dec 28, 2022
V-Model is a model plugin for Vue.js, like ng-resource.

V-Model V-Model is a model plugin for Vue.js, like ng-resource. based on axios, path-to-regexp, and bluebird. The V-Model provides interaction support

Gaoding Inc 56 Mar 16, 2021
Async data loading plugin for Vue.js 2.0

vue-async-data for Vue.js 2.0 Async data loading plugin for Vue.js Install this plugin is written in ES2015, so recommend compile with babel/babel-pol

kamijin_fanta 33 Mar 16, 2021
Control your API calls by using an amazing component which supports axios and vue-resource

Vue API Request Vue API Request provides a full control on your APIs, making the calls simple, fast and easy to implement. Also, your code will be cle

Felipe Gibran Eleuterio Toledo 127 Dec 10, 2022
Solution to remove and simplify axios in components vue

Vue fast axios Solution to remove and simplify axios in components vue Dependencies: Only Vue.js 2.x Before install Before installing, you must instal

Leonardo Vilarinho 43 Apr 16, 2022
Smart asynchronous data and computed properties for vue components.

vue-async-properties Vue Component Plugin for asynchronous data and computed properties. A Marketdial Project new Vue({ props: { articleId: Numb

MarketDial 38 Jun 21, 2021
Stale-while-revalidate data fetching for Vue

swrv swrv (pronounced "swerve") is a library using the @vue/composition-api for remote data fetching. It is largely a port of swr. Documentation The n

Kong 1.8k Jan 7, 2023
Vue 2 directive to easily add AJAX requests to your application

v-fetch v-fetch is a Vue directive to add AJAX to your app without the boilerplate Summary v-fetch is a directive that adds AJAX functionality to your

Shayne Kasai 6 Mar 31, 2022
Vue Axios Http - This package helps you quickly to build requests for REST API

Vue Axios Http This package helps you quickly to build requests for REST API. Move your logic and backend requests to dedicated classes.

Chantouch Sek 4 Apr 9, 2022
A tiny library for handling JSONP request.

Vue-jsonp A tiny library for handling JSONP request. Quick Start As Vue plugin: import { VueJsonp } from 'vue-jsonp' // Vue Plugin. Vue.use(VueJsonp)

LancerComet 142 Dec 7, 2022
data table simplify! -- vuetable is a Vue.js component that will automatically request (JSON) data from the server and display them nicely in html table with swappable/extensible pagination component.

Please Note! This is the previous version that works with Vue 1.x. The most up-to-date version is the Vuetable-2. If you like it, please star the Vuet

Rati Wannapanop 1.8k Dec 23, 2022
Vue js Axios example - Get/Post/Put/Delete request with Rest API - JSON data

Vue Axios example with Rest API Vue Client with Axios to make CRUD requests to Rest API in that: Vue Axios GET request: get all Tutorials, get Tutoria

null 8 Aug 30, 2022
Results of small 30 min online coding challenge + small polishing afterwards. Vue JS login form + Express JS login endpoint with CORS middleware and validation of request

Install dependencies: npm -i install Start FE: npm run serve ./frontend/src/main.js Start BE: node ./backend/controller/index.js ToDo: tests docker-co

Oleksii Dubinin 0 Jan 14, 2022
Utils normalize url, data, params for axios when using rest api request

rexios Utils normalize url, data, params for axios when using rest api request Why? Returns normalized parameters and url according to the rest-api co

Ivan Demidov 5 Mar 9, 2022
An easy way for http request with error validation management.

An easy way for http request with error validation management. Wouldn't it be great if you could just use your back end to validate forms on the front

Sokhorn Houn 0 Feb 18, 2020
HTTPBin is a network tool provides request record service and custom route responses.

HTTPBin HTTPBin is a network tool provides request record service and custom route responses. You can public service that we deployed on the internet,

null 3 Sep 14, 2022
Vue.js components implementation of Fundamental Library Styles guidelines. The library is aiming to provide a Vue.js implementation of the components designed in Fundamental Library Styles.

Fundamental Vue Description The fundamental-vue library is a set of Vue.js components built using Fundamental Library Styles. Fundamental Library for

SAP 188 Jan 1, 2023
Vue & Canvas - JavaScript library for drawing complex canvas graphics using Vue.

Vue Konva Vue Konva is a JavaScript library for drawing complex canvas graphics using Vue. It provides declarative and reactive bindings to the Konva

konva 914 Dec 28, 2022