Allows you to build fetcher function by URL at compile-time.

Overview

fetch.macro

Allows you to build fetcher function by URL at compile-time.


GitHub Workflow Status (branch) Codecov branch npm npm downloads License GitHub contributors (via allcontributors.org)

Usage

Simply install and configure babel-plugin-macros and then use fetch.macro.

Vite

To be able to use these macros in your Vite project, you only need install vite-plugin-babel-macros and add some configuration in vite.config.js. And it just work.

$ npm i -D vite-plugin-babel-macros
import MacrosPlugin from "vite-plugin-babel-macros";

export default {
  // ...
  plugins: [
    // ...
    MacrosPlugin(),
  ],
};

Example

Basic

Given the following Input:

import f from "fetch.macro";
const fetchByUrl = f("/api/v1/ping");

Babel will produce the following Output:

const fetchByUrl = (opts) => fetch("/api/v1/ping", opts);

It also works as a tagged template literal:

import f from "fetch.macro";
const fetchByUrl = f`/api/v1/ping`;

That will produce the same output as the function version.

Nested

Given the following Input:

import f from "fetch.macro";
const fetchProject = f`/api/v1/user/:id/project/:projectId/:others`;

Babel will produce the following Output:

const fetchProject = ({ id, projectId, others, ...opts }) =>
  fetch(`/api/v1/user/${id}/project/${projectId}/${others}`, opts);

Contributors


RiN

🤔 🚇 🔧

Ryan Aunur Rassyid

💡

License

MIT

Comments
  • docs: update README add command install fetch macro

    docs: update README add command install fetch macro

    berawal dari pengen coba coba tapi pas mau ngetest di project CRA error padahal udah install npm install --save-dev babel-plugin-macros ternyata cara installnya pakai ini yarn add fetch.macro sekalian deh tambah dokumentasi

    released 
    opened by vadhe 10
  • New Features

    New Features

    New Features

    Hacktoberfest has arrived

    At this project we want to deliver new feature, the new feature is based on fetch specification at whatwag - See here

    image

    Example Usage

    import { fetchText, fetchJson, fetchBlob, fetchArrayBuffer, fetchFormData } from 'fetch.macro'
    
    const fetchSomeText = fetchText`/api/v1/user/:id/project/:projectId/:others`;
    
    const fetchSomeJson = fetchJson`/api/v1/user/:id/project/:projectId/:others`;
    
    const fetchSomeBlob = fetchBlob`/api/v1/user/:id/project/:projectId/:others`;
    
    const fetchSomeArrayBuffer = fetchArrayBuffer`/api/v1/user/:id/project/:projectId/:others`;
    
    const fetchSomeFormData = fetchFormData`/api/v1/user/:id/project/:projectId/:others`;
    

    Todo

    This is lists for new API at fetch.macro modules.

    Before start the contrbution, we have been provide code flag for make our easy to write code implementation or test case.

    This the line of code related with this issue and step to contributed:

    1. Write Reference name - reference name is import module name (e.g: fetchText) - See Here
    2. Write Member Expression implementation - (e.g: .then(r => r.json)) - See Here
    3. Apply transformation - See here
    4. ~~Write little documentation at README.md - Example: fetchText~~ (Skip this step, go to step 5., write documentation about api in test case)
    5. Write Test Case in fetch.test.js - See here
    • [x] fetchText - #23
    • [x] fetchJson - #24
    • [x] fetchBlob - #28
    • [x] fetchArrayBuffer #34
    • [x] fetchFormData - #31
    • [x] fetchClone - Basically just Response.clone - This is low priority but no problem to include as the new features - @fzn0x - Thanks to @afrianjunior

    Thanks for you contribution and happy hacking

    enhancement hacktoberfest 
    opened by r17x 5
  • chore(deps-dev): bump @semantic-release/changelog from `66e49ab` to `fa9a13b`

    chore(deps-dev): bump @semantic-release/changelog from `66e49ab` to `fa9a13b`

    Bumps @semantic-release/changelog from 66e49ab to fa9a13b.

    Commits

    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)
    released kodiak: merge.method = 'rebase' automerge 
    opened by dependabot[bot] 3
  • chore(deps-dev): bump @semantic-release/changelog from `8f81b4e` to `66e49ab`

    chore(deps-dev): bump @semantic-release/changelog from `8f81b4e` to `66e49ab`

    Bumps @semantic-release/changelog from 8f81b4e to 66e49ab.

    Commits

    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)
    released 
    opened by dependabot[bot] 3
  • chore(deps-dev): bump eslint from 8.23.0 to 8.23.1

    chore(deps-dev): bump eslint from 8.23.0 to 8.23.1

    Bumps eslint from 8.23.0 to 8.23.1.

    Release notes

    Sourced from eslint's releases.

    v8.23.1

    Bug Fixes

    • b719893 fix: Upgrade eslintrc to stop redefining plugins (#16297) (Brandon Mills)
    • 734b54e fix: improve autofix for the prefer-const rule (#16292) (Nitin Kumar)
    • 6a923ff fix: Ensure that glob patterns are normalized (#16287) (Nicholas C. Zakas)
    • c6900f8 fix: Ensure globbing doesn't include subdirectories (#16272) (Nicholas C. Zakas)

    Documentation

    • 16cba3f docs: fix mobile double tap issue (#16293) (Sam Chen)
    • e098b5f docs: keyboard control to search results (#16222) (Shanmughapriyan S)
    • 1b5b2a7 docs: add Consolas font and prioritize resource loading (#16225) (Amaresh S M)
    • 1ae8236 docs: copy & use main package version in docs on release (#16252) (Jugal Thakkar)
    • 279f0af docs: Improve id-denylist documentation (#16223) (Mert Ciflikli)

    Chores

    Changelog

    Sourced from eslint's changelog.

    v8.23.1 - September 12, 2022

    • b719893 fix: Upgrade eslintrc to stop redefining plugins (#16297) (Brandon Mills)
    • 734b54e fix: improve autofix for the prefer-const rule (#16292) (Nitin Kumar)
    • 6a923ff fix: Ensure that glob patterns are normalized (#16287) (Nicholas C. Zakas)
    • 38e8171 perf: migrate rbTree to js-sdsl (#16267) (Zilong Yao)
    • 16cba3f docs: fix mobile double tap issue (#16293) (Sam Chen)
    • c6900f8 fix: Ensure globbing doesn't include subdirectories (#16272) (Nicholas C. Zakas)
    • e098b5f docs: keyboard control to search results (#16222) (Shanmughapriyan S)
    • 1b5b2a7 docs: add Consolas font and prioritize resource loading (#16225) (Amaresh S M)
    • 1c388fb chore: switch nyc to c8 (#16263) (唯然)
    • 67db10c chore: enable linting .eleventy.js again (#16274) (Milos Djermanovic)
    • 1ae8236 docs: copy & use main package version in docs on release (#16252) (Jugal Thakkar)
    • 42bfbd7 chore: fix npm run perf crashes (#16258) (唯然)
    • 279f0af docs: Improve id-denylist documentation (#16223) (Mert Ciflikli)
    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)
    released automerge 
    opened by dependabot[bot] 3
  • feat(swc): support fetch.macro  swc

    feat(swc): support fetch.macro swc

    Todos

    • [x] dev shells with nix - see shell. nix at this branch
    • [x] re-implement fetch.macro.js in swc/src/lib.rs
      • [x] remove import source fetch.macro.
      • [x] transform string url to fetch function.
      • [ ] transform string url with params to fetch function. (NEXT PRs)
    • [x] github-actions support for rust project "./swc"
    kodiak: merge.method = 'rebase' automerge beta released on @next 
    opened by r17x 3
  • chore(deps-dev): bump eslint from 8.28.0 to 8.29.0

    chore(deps-dev): bump eslint from 8.28.0 to 8.29.0

    Bumps eslint from 8.28.0 to 8.29.0.

    Release notes

    Sourced from eslint's releases.

    v8.29.0

    Features

    • 49a07c5 feat: add allowParensAfterCommentPattern option to no-extra-parens (#16561) (Nitin Kumar)
    • e6a865d feat: prefer-named-capture-group add suggestions (#16544) (Josh Goldberg)
    • a91332b feat: In no-invalid-regexp validate flags also for non-literal patterns (#16583) (trosos)

    Documentation

    • 0311d81 docs: Configuring Plugins page intro, page tweaks, and rename (#16534) (Ben Perlmutter)
    • 57089b1 docs: add a property assignment example for camelcase rule (#16605) (Milos Djermanovic)
    • b6ab030 docs: add docs codeowners (#16601) (Strek)
    • 6380c87 docs: fix sitemap and feed (#16592) (Milos Djermanovic)
    • ade621d docs: perf debounce the search query (#16586) (Shanmughapriyan S)
    • fbcf3ab docs: fix searchbar clear button (#16585) (Shanmughapriyan S)
    • f894035 docs: HTTPS link to yeoman.io (#16582) (Christian Oliff)
    • de12b26 docs: Update configuration file pages (#16509) (Ben Perlmutter)
    • 1ae9f20 docs: update correct code examples for no-extra-parens rule (#16560) (Nitin Kumar)

    Chores

    • 7628403 chore: add discord channel link (#16590) (Amaresh S M)
    • f5808cb chore: fix rule doc headers check (#16564) (Milos Djermanovic)
    Changelog

    Sourced from eslint's changelog.

    v8.29.0 - December 2, 2022

    • 0311d81 docs: Configuring Plugins page intro, page tweaks, and rename (#16534) (Ben Perlmutter)
    • 57089b1 docs: add a property assignment example for camelcase rule (#16605) (Milos Djermanovic)
    • b6ab030 docs: add docs codeowners (#16601) (Strek)
    • 7628403 chore: add discord channel link (#16590) (Amaresh S M)
    • 49a07c5 feat: add allowParensAfterCommentPattern option to no-extra-parens (#16561) (Nitin Kumar)
    • 6380c87 docs: fix sitemap and feed (#16592) (Milos Djermanovic)
    • e6a865d feat: prefer-named-capture-group add suggestions (#16544) (Josh Goldberg)
    • ade621d docs: perf debounce the search query (#16586) (Shanmughapriyan S)
    • a91332b feat: In no-invalid-regexp validate flags also for non-literal patterns (#16583) (trosos)
    • fbcf3ab docs: fix searchbar clear button (#16585) (Shanmughapriyan S)
    • f894035 docs: HTTPS link to yeoman.io (#16582) (Christian Oliff)
    • de12b26 docs: Update configuration file pages (#16509) (Ben Perlmutter)
    • f5808cb chore: fix rule doc headers check (#16564) (Milos Djermanovic)
    • 1ae9f20 docs: update correct code examples for no-extra-parens rule (#16560) (Nitin Kumar)
    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)
    automerge dependencies 
    opened by dependabot[bot] 2
  • ci/update workflow

    ci/update workflow

    • chore(devShells): dev shells with nix
    • chore(swc): init project for support swc
    • chore(swc): update toolschain
    • chore(swc): remove unused dev-deps in shell.nix
    • feat(swc-plugin): remove imported fetch.macro
    • ci(swc): build in ci
    • feat(swc): basic fetch.macro feature in swc plugin
    • ci(actions): add build workflow
    • ci(setup-node): add input rust_cache_enable
    • ci(actions): enable rust in test and build workflow
    • ci(actions): make release depends with build
    • ci(actions): add yarn build script in package.json
    • chore(deps): export swc for using as swc-plugin
    • chore(release): 1.8.0 [skip ci]
    • ci(actions): upgrade to v3
    • ci(setup-node): update glob pattern for cache path
    released on @next 
    opened by r17x 2
  • chore(deps-dev): bump eslint from 8.25.0 to 8.26.0

    chore(deps-dev): bump eslint from 8.25.0 to 8.26.0

    Bumps eslint from 8.25.0 to 8.26.0.

    Release notes

    Sourced from eslint's releases.

    v8.26.0

    Features

    • 4715787 feat: check Object.create() in getter-return (#16420) (Yuki Hirasawa)
    • 28d1902 feat: no-implicit-globals supports exported block comment (#16343) (Sosuke Suzuki)
    • e940be7 feat: Use ESLINT_USE_FLAT_CONFIG environment variable for flat config (#16356) (Tomer Aberbach)
    • dd0c58f feat: Swap out Globby for custom globbing solution. (#16369) (Nicholas C. Zakas)

    Bug Fixes

    • df77409 fix: use baseConfig constructor option in FlatESLint (#16432) (Milos Djermanovic)
    • 33668ee fix: Ensure that glob patterns are matched correctly. (#16449) (Nicholas C. Zakas)
    • 740b208 fix: ignore messages without a ruleId in getRulesMetaForResults (#16409) (Francesco Trotta)
    • 8f9759e fix: --ignore-pattern in flat config mode should be relative to cwd (#16425) (Milos Djermanovic)
    • 325ad37 fix: make getRulesMetaForResults return a plain object in trivial case (#16438) (Francesco Trotta)
    • a2810bc fix: Ensure that directories can be unignored. (#16436) (Nicholas C. Zakas)
    • 35916ad fix: Ensure unignore and reignore work correctly in flat config. (#16422) (Nicholas C. Zakas)

    Documentation

    • 651649b docs: Core concepts page (#16399) (Ben Perlmutter)
    • 631cf72 docs: note --ignore-path not supported with flat config (#16434) (Andy Edwards)
    • 1692840 docs: fix syntax in examples for new config files (#16427) (Milos Djermanovic)
    • d336cfc docs: Document extending plugin with new config (#16394) (Ben Perlmutter)

    Chores

    Changelog

    Sourced from eslint's changelog.

    v8.26.0 - October 21, 2022

    • df77409 fix: use baseConfig constructor option in FlatESLint (#16432) (Milos Djermanovic)
    • 33668ee fix: Ensure that glob patterns are matched correctly. (#16449) (Nicholas C. Zakas)
    • 651649b docs: Core concepts page (#16399) (Ben Perlmutter)
    • 4715787 feat: check Object.create() in getter-return (#16420) (Yuki Hirasawa)
    • e917a9a ci: add node v19 (#16443) (Koichi ITO)
    • 740b208 fix: ignore messages without a ruleId in getRulesMetaForResults (#16409) (Francesco Trotta)
    • 8f9759e fix: --ignore-pattern in flat config mode should be relative to cwd (#16425) (Milos Djermanovic)
    • 325ad37 fix: make getRulesMetaForResults return a plain object in trivial case (#16438) (Francesco Trotta)
    • a2810bc fix: Ensure that directories can be unignored. (#16436) (Nicholas C. Zakas)
    • 631cf72 docs: note --ignore-path not supported with flat config (#16434) (Andy Edwards)
    • 1692840 docs: fix syntax in examples for new config files (#16427) (Milos Djermanovic)
    • 28d1902 feat: no-implicit-globals supports exported block comment (#16343) (Sosuke Suzuki)
    • 35916ad fix: Ensure unignore and reignore work correctly in flat config. (#16422) (Nicholas C. Zakas)
    • 4b70b91 chore: Add VS Code issues link (#16423) (Nicholas C. Zakas)
    • e940be7 feat: Use ESLINT_USE_FLAT_CONFIG environment variable for flat config (#16356) (Tomer Aberbach)
    • d336cfc docs: Document extending plugin with new config (#16394) (Ben Perlmutter)
    • dd0c58f feat: Swap out Globby for custom globbing solution. (#16369) (Nicholas C. Zakas)
    • 232d291 chore: suppress a Node.js deprecation warning (#16398) (Koichi ITO)
    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)
    kodiak: merge.method = 'rebase' automerge dependencies released on @next 
    opened by dependabot[bot] 2
  • chore(deps-dev): bump @babel/core from 7.19.3 to 7.19.6

    chore(deps-dev): bump @babel/core from 7.19.3 to 7.19.6

    Bumps @babel/core from 7.19.3 to 7.19.6.

    Release notes

    Sourced from @​babel/core's releases.

    v7.19.6 (2022-10-20)

    Thanks @​lomirus for your first PR!

    :eyeglasses: Spec Compliance

    • babel-plugin-proposal-decorators
      • #15059 Ensure non-static decorators are applied when a class is instantiated. (@​JLHwung)

    :bug: Bug Fix

    • babel-parser
    • babel-plugin-transform-runtime, babel-runtime-corejs2, babel-runtime-corejs3
      • #15060 Ensure @babel/runtime-corejs3/core-js/*.js can be imported on Node.js 17+ (@​JLHwung)
    • babel-preset-env, babel-traverse

    :nail_care: Polish

    • babel-generator, babel-plugin-transform-flow-comments

    :memo: Documentation

    :house: Internal

    :running_woman: Performance

    Committers: 4

    v7.19.5 (2022-10-10)

    :bug: Bug Fix

    Committers: 2

    ... (truncated)

    Changelog

    Sourced from @​babel/core's changelog.

    v7.19.6 (2022-10-20)

    :eyeglasses: Spec Compliance

    • babel-plugin-proposal-decorators
      • #15059 Ensure non-static decorators are applied when a class is instantiated. (@​JLHwung)

    :bug: Bug Fix

    • babel-parser
    • babel-plugin-transform-runtime, babel-runtime-corejs2, babel-runtime-corejs3
      • #15060 Ensure @babel/runtime-corejs3/core-js/*.js can be imported on Node.js 17+ (@​JLHwung)
    • babel-preset-env, babel-traverse

    :nail_care: Polish

    • babel-generator, babel-plugin-transform-flow-comments

    :memo: Documentation

    :house: Internal

    :running_woman: Performance

    v7.19.5 (2022-10-10)

    :bug: Bug Fix

    v7.19.4 (2022-10-10)

    :eyeglasses: Spec Compliance

    • babel-plugin-transform-block-scoping
    • babel-helpers, babel-plugin-proposal-destructuring-private, babel-plugin-proposal-object-rest-spread, babel-plugin-transform-destructuring

    :bug: Bug Fix

    • babel-plugin-transform-react-jsx-development, babel-plugin-transform-typescript, babel-types
    • babel-plugin-transform-destructuring, babel-plugin-transform-react-constant-elements, babel-traverse

    ... (truncated)

    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)
    dependencies released on @next 
    opened by dependabot[bot] 2
  • chore(deps-dev): bump jest from 29.2.0 to 29.2.1

    chore(deps-dev): bump jest from 29.2.0 to 29.2.1

    Bumps jest from 29.2.0 to 29.2.1.

    Release notes

    Sourced from jest's releases.

    v29.2.1

    Features

    • [@jest/globals, jest-mock] Add jest.Spied* utility types (#13440)

    Fixes

    • [jest-environment-node] make globalThis.performance writable for Node 19 and fake timers (#13467)
    • [jest-mock] Revert #13398 to restore mocking of setters (#13472)

    Performance

    • [*] Use sha1 instead of sha256 for hashing (#13421)

    Full Changelog: https://github.com/facebook/jest/compare/v29.2.0...v29.2.1

    Changelog

    Sourced from jest's changelog.

    29.2.1

    Features

    • [@jest/globals, jest-mock] Add jest.Spied* utility types (#13440)

    Fixes

    • [jest-environment-node] make globalThis.performance writable for Node 19 and fake timers (#13467)
    • [jest-mock] Revert #13398 to restore mocking of setters (#13472)

    Performance

    • [*] Use sha1 instead of sha256 for hashing (#13421)
    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)
    released automerge dependencies 
    opened by dependabot[bot] 2
  • setup: using @swc/jest

    setup: using @swc/jest

    Is your feature request related to a problem? Please describe. This is not feature, this is just want to use @swc/jest

    Describe the solution you'd like Since, want to provided fetch.macro in swc as swc-plugin. It's better to integrated with @swc/jest.

    Describe alternatives you've considered

    Additional context

    enhancement good first issue devtools 
    opened by r17x 1
Releases(v1.9.0)
Owner
RiN
Interest in topic (φ + Losophy), (λ + μετα-Programming), D.x (Developer Experience), & Web Tech. @evilfactorylabs
RiN
Compile-time tests for types. Useful to make sure types don't regress into being overly-permissive as changes go in over time.

expect-type Compile-time tests for types. Useful to make sure types don't regress into being overly-permissive as changes go in over time. Similar to

Misha Kaletsky 82 Jan 8, 2023
Compile Master CSS ahead of time with zero-configuration integration with build tools

CSS Compiler Compile Master CSS ahead of time with zero-configuration integration with build tools On this page Usage webpack.config.js vite.config.js

Master 5 Oct 31, 2022
Package fetcher is a bot messenger which gather npm packages by uploading either a json file (package.json) or a picture representing package.json. To continue...

package-fetcher Ce projet contient un boilerplate pour un bot messenger et l'executable Windows ngrok qui va permettre de créer un tunnel https pour c

AILI Fida Aliotti Christino 2 Mar 29, 2022
A simple nodejs module which is wrapper around solc that allows you to compile Solidity code

Simple Solidity Compiler It's a simple nodejs module which is wrapper around solc that allows you to compile Solidity code and get the abi and bytecod

King Rayhan 4 Feb 21, 2022
Wrap a function with bun-livereload to automatically reload any imports inside the function the next time it is called

bun-livereload Wrap a function with bun-livereload to automatically reload any imports inside the function the next time it is called. import liveRelo

Jarred Sumner 19 Dec 19, 2022
Converts JSX to HTML strings at compile time.

unplugin-jsx-string Converts JSX to HTML strings at compile time. Installation npm i unplugin-jsx-string Vite // vite.config.ts import JsxString from

三咲智子 9 Sep 3, 2022
Jsonup - This is a zero dependency compile-time JSON parser written in TypeScript

jsonup This is a zero dependency compile-time JSON parser written in TypeScript.

TANIGUCHI Masaya 39 Dec 8, 2022
Experimental compile-time optimizer for SolidJS

solid-optimizer Experimental compile-time optimizer for SolidJS Install npm i -D solid-optimizer yarn add -D solid-optimizer pnpm add -D solid-optimiz

Alexis H. Munsayac 6 Oct 21, 2022
Cindy Dorantes 12 Oct 18, 2022
Piccloud is a full-stack (Angular & Spring Boot) online image clipboard that lets you share images over the internet by generating a unique URL. Others can access the image via this URL.

Piccloud Piccloud is a full-stack application built with Angular & Spring Boot. It is an online image clipboard that lets you share images over the in

Olayinka Atobiloye 3 Dec 15, 2022
A Svelte parser that compiles to Mitosis JSON, allowing you to write Svelte components once and compile to every framework.

Sveltosis Still in development A Svelte parser that compiles to Mitosis JSON, allowing you to write Svelte components once and compile to every framew

sveltosis 70 Nov 24, 2022
serverless plugin to setup custom domain for lambdas deployed with function url.

serverless-aws-function-url-custom-domain Automatically creates AWS CloudFront distribution and Route 53 records to AWS Lambda with Function URL (no a

Sha 8 Nov 27, 2022
Chris Siku 13 Aug 22, 2022
A quickstart AWS Lambda function code generator. Downloads a template function code file, test harness file, sample SAM deffiniation and appropriate file structure.

Welcome to function-stencil ?? A quickstart AWS Lambda function code generator. Downloads a template function code file, test harness file, sample SAM

Ben Smith 21 Jun 20, 2022
Tries to execute sync/async function, returns a specified default value if the function throws

good-try Tries to execute sync/async function, returns a specified default value if the function throws. Why Why not nice-try with it's 70+ million do

Antonio Stoilkov 14 Dec 8, 2022
A hardhat solidity template with necessary libraries that support to develop, compile, test, deploy, upgrade, verify solidity smart contract

solidity-hardhat-template A solidity hardhat template with necessary libraries that support to develop, compile, test, deploy, upgrade, verify solidit

ChimGoKien 4 Oct 16, 2022
Awesome book with ES6, this project is build using HTML,CSS, JavaScript ES6 the project allows you to add books and save them with the author , for another time checks

Project Name Awsome books Description the project. adding books daynamiclly Built With Major languages Frameworks Technologies used Live Demo (if avai

Alzubair Alqaraghuli 5 Jul 25, 2022
A project made in NodeJS that allows you to shorten URL.

URL Shortener A modern URL Shortener using Node.js, Express and Mongodb. It's a completely open-sourced and free-to-use project. Developed by Colderry

Incresoft 4 Jan 31, 2022
MerLoc is a live AWS Lambda function development and debugging tool. MerLoc allows you to run AWS Lambda functions on your local while they are still part of a flow in the AWS cloud remote.

MerLoc MerLoc is a live AWS Lambda function development and debugging tool. MerLoc allows you to run AWS Lambda functions on your local while they are

Thundra 165 Dec 21, 2022