Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: dmnd/dedent
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v1.5.1
Choose a base ref
...
head repository: dmnd/dedent
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v1.5.2
Choose a head ref
  • 8 commits
  • 69 files changed
  • 5 contributors

Commits on Aug 3, 2023

  1. chore: remove files related to Flow (#77)

    This library has already converted to TypeScript since
    #51.
    So, I removed files related to Flow.
    yinm authored Aug 3, 2023

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    f933c75 View commit details

Commits on Nov 12, 2023

  1. build: onboarded to create-typescript-app (mostly) (#55)

    Fixes #54.
    
    Adds all the tooling from that template, except:
    * Jest is still used for tests instead of Vitest to make that transition
    easier
    * Babel is used for building to go along with ☝️
    (egoist/tsup#665)
    * The output directory stays as `dist/`, not the template's default
    `lib/`
    * https://github.com/JoshuaKGoldberg/sentences-per-line: as it conflicts
    with eslint-doc-generator
    
    Adds an explicit _"works with spaces"_ test alongside the existing
    _"works with tabs"_ now that the repo is switched to tabs.
    JoshuaKGoldberg authored Nov 12, 2023

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    f1b814e View commit details

Commits on Nov 18, 2023

  1. chore: fix special characters escaping issue link in README (#82)

    ## PR Checklist
    
    - [ ] Addresses an existing open issue: fixes #000
    - [ ] That issue was marked as [`status: accepting
    prs`](https://github.com/dmnd/dedent/issues?q=is%3Aopen+is%3Aissue+label%3A%22status%3A+accepting+prs%22)
    - [x] Steps in
    [CONTRIBUTING.md](https://github.com/dmnd/dedent/blob/main/.github/CONTRIBUTING.md)
    were taken
    
    ## Overview
    
    I don't think it should look like this :)
    
    ![image](https://github.com/dmnd/dedent/assets/61150013/047dbb21-2b0f-40cf-b09b-b29d6e0e4510)
    auvred authored Nov 18, 2023

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    53a7267 View commit details

Commits on Dec 20, 2023

  1. chore: replace last yarn references with pnpm (#86)

    ## PR Checklist
    
    - [x] Addresses an existing open issue: fixes #85
    - [x] That issue was marked as [`status: accepting
    prs`](https://github.com/dmnd/dedent/issues?q=is%3Aopen+is%3Aissue+label%3A%22status%3A+accepting+prs%22)
    - [x] Steps in
    [CONTRIBUTING.md](https://github.com/dmnd/dedent/blob/main/.github/CONTRIBUTING.md)
    were taken
    
    ## Overview
    
    Fixes the last few `yarn` references in `package.json` scripts to
    instead say `pnpm`.
    JoshuaKGoldberg authored Dec 20, 2023
    Copy the full SHA
    a4f30bf View commit details

Commits on Dec 21, 2023

  1. docs: add explicit install command to README.md (#84)

    ## PR Checklist
    
    - [x] Addresses an existing open issue: fixes #83
    - [x] That issue was marked as [`status: accepting
    prs`](https://github.com/dmnd/dedent/issues?q=is%3Aopen+is%3Aissue+label%3A%22status%3A+accepting+prs%22)
    - [x] Steps in
    [CONTRIBUTING.md](https://github.com/dmnd/dedent/blob/main/.github/CONTRIBUTING.md)
    were taken
    
    ## Overview
    
    Adds an explicit `npm install dedent` code block to the top of the
    README.md
    JoshuaKGoldberg authored Dec 21, 2023
    Copy the full SHA
    87f0f9b View commit details

Commits on Feb 18, 2024

  1. fix: switch babel-plugin-macros to a peer dependency (again) (#89)

    ## PR Checklist
    
    - [x] Addresses an existing open issue: fixes #88
    - [x] That issue was marked as [`status: accepting
    prs`](https://github.com/dmnd/dedent/issues?q=is%3Aopen+is%3Aissue+label%3A%22status%3A+accepting+prs%22)
    - [x] Steps in
    [CONTRIBUTING.md](https://github.com/dmnd/dedent/blob/main/.github/CONTRIBUTING.md)
    were taken
    
    ## Overview
    
    Re-applies #60 per the issue.
    JoshuaKGoldberg authored Feb 18, 2024
    Copy the full SHA
    625d708 View commit details
  2. build(deps-dev): bump @babel/traverse from 7.22.8 to 7.23.6 (#87)

    Bumps
    [@babel/traverse](https://github.com/babel/babel/tree/HEAD/packages/babel-traverse)
    from 7.22.8 to 7.23.6.
    <details>
    <summary>Release notes</summary>
    <p><em>Sourced from <a
    href="https://github.com/babel/babel/releases"><code>@​babel/traverse</code>'s
    releases</a>.</em></p>
    <blockquote>
    <h2>v7.23.6 (2023-12-11)</h2>
    <p>Thanks <a
    href="https://github.com/martinez-hugo"><code>@​martinez-hugo</code></a>
    and <a href="https://github.com/odinho"><code>@​odinho</code></a> for
    your first pull requests!</p>
    <h4>:eyeglasses: Spec Compliance</h4>
    <ul>
    <li><code>babel-generator</code>, <code>babel-parser</code>,
    <code>babel-types</code>
    <ul>
    <li><a
    href="https://redirect.github.com/babel/babel/pull/16154">#16154</a>
    Remove <code>TSPropertySignature.initializer</code> (<a
    href="https://github.com/fisker"><code>@​fisker</code></a>)</li>
    </ul>
    </li>
    <li><code>babel-helpers</code>,
    <code>babel-plugin-proposal-decorators</code>,
    <code>babel-plugin-transform-class-properties</code>,
    <code>babel-plugin-transform-class-static-block</code>,
    <code>babel-plugin-transform-runtime</code>,
    <code>babel-preset-env</code>, <code>babel-runtime-corejs2</code>,
    <code>babel-runtime-corejs3</code>, <code>babel-runtime</code>,
    <code>babel-types</code>
    <ul>
    <li><a
    href="https://redirect.github.com/babel/babel/pull/16139">#16139</a>
    Apply <code>toPropertyKey</code> on decorator context name (<a
    href="https://github.com/JLHwung"><code>@​JLHwung</code></a>)</li>
    </ul>
    </li>
    </ul>
    <h4>:bug: Bug Fix</h4>
    <ul>
    <li><code>babel-generator</code>
    <ul>
    <li><a
    href="https://redirect.github.com/babel/babel/pull/16166">#16166</a>
    fix: Correctly indenting when <code>retainLines</code> is enabled (<a
    href="https://github.com/liuxingbaoyu"><code>@​liuxingbaoyu</code></a>)</li>
    </ul>
    </li>
    <li><code>babel-helpers</code>,
    <code>babel-plugin-proposal-explicit-resource-management</code>
    <ul>
    <li><a
    href="https://redirect.github.com/babel/babel/pull/16150">#16150</a>
    <code>using</code>: Allow looking up <code>Symbol.dispose</code> on a
    function (<a
    href="https://github.com/odinho"><code>@​odinho</code></a>)</li>
    </ul>
    </li>
    <li><code>babel-plugin-proposal-decorators</code>,
    <code>babel-plugin-transform-class-properties</code>
    <ul>
    <li><a
    href="https://redirect.github.com/babel/babel/pull/16161">#16161</a>
    Ensure the <code>[[@@toPrimitive]]</code> call of a decorated class
    member key is invoked once (<a
    href="https://github.com/JLHwung"><code>@​JLHwung</code></a>)</li>
    <li><a
    href="https://redirect.github.com/babel/babel/pull/16148">#16148</a>
    Support named evaluation for decorated anonymous class exp (<a
    href="https://github.com/JLHwung"><code>@​JLHwung</code></a>)</li>
    </ul>
    </li>
    <li><code>babel-plugin-transform-for-of</code>,
    <code>babel-preset-env</code>
    <ul>
    <li><a
    href="https://redirect.github.com/babel/babel/pull/16011">#16011</a>
    fix: <code>for of</code> with <code>iterableIsArray</code> and shadowing
    variable (<a
    href="https://github.com/liuxingbaoyu"><code>@​liuxingbaoyu</code></a>)</li>
    </ul>
    </li>
    <li><code>babel-helpers</code>,
    <code>babel-plugin-proposal-decorators</code>,
    <code>babel-runtime-corejs2</code>, <code>babel-runtime-corejs3</code>,
    <code>babel-runtime</code>
    <ul>
    <li><a
    href="https://redirect.github.com/babel/babel/pull/16144">#16144</a> Set
    function name for decorated private non-field elements (<a
    href="https://github.com/JLHwung"><code>@​JLHwung</code></a>)</li>
    </ul>
    </li>
    <li><code>babel-plugin-transform-typescript</code>
    <ul>
    <li><a
    href="https://redirect.github.com/babel/babel/pull/16137">#16137</a> Fix
    references to enum values with merging (<a
    href="https://github.com/nicolo-ribaudo"><code>@​nicolo-ribaudo</code></a>)</li>
    </ul>
    </li>
    </ul>
    <h4>:microscope: Output optimization</h4>
    <ul>
    <li><code>babel-helper-create-class-features-plugin</code>,
    <code>babel-plugin-transform-class-properties</code>
    <ul>
    <li><a
    href="https://redirect.github.com/babel/babel/pull/16159">#16159</a>
    Reuse computed key memoiser (<a
    href="https://github.com/JLHwung"><code>@​JLHwung</code></a>)</li>
    </ul>
    </li>
    <li><code>babel-helpers</code>,
    <code>babel-plugin-proposal-decorators</code>
    <ul>
    <li><a
    href="https://redirect.github.com/babel/babel/pull/16160">#16160</a>
    Optimize decorator helper size (<a
    href="https://github.com/liuxingbaoyu"><code>@​liuxingbaoyu</code></a>)</li>
    </ul>
    </li>
    </ul>
    <h4>Committers: 7</h4>
    <ul>
    <li>Babel Bot (<a
    href="https://github.com/babel-bot"><code>@​babel-bot</code></a>)</li>
    <li>Hugo Martinez (<a
    href="https://github.com/martinez-hugo"><code>@​martinez-hugo</code></a>)</li>
    <li>Huáng Jùnliàng (<a
    href="https://github.com/JLHwung"><code>@​JLHwung</code></a>)</li>
    <li>Nicolò Ribaudo (<a
    href="https://github.com/nicolo-ribaudo"><code>@​nicolo-ribaudo</code></a>)</li>
    <li>Odin Hørthe-Omdal Urdland (<a
    href="https://github.com/odinho"><code>@​odinho</code></a>)</li>
    <li><a
    href="https://github.com/liuxingbaoyu"><code>@​liuxingbaoyu</code></a></li>
    <li>fisker Cheung (<a
    href="https://github.com/fisker"><code>@​fisker</code></a>)</li>
    </ul>
    <h2>v7.23.5 (2023-11-29)</h2>
    <h4>:eyeglasses: Spec Compliance</h4>
    <ul>
    <li><code>babel-plugin-proposal-decorators</code>
    <ul>
    <li><a
    href="https://redirect.github.com/babel/babel/pull/16138">#16138</a>
    Class binding is in TDZ during decorators initialization (<a
    href="https://github.com/nicolo-ribaudo"><code>@​nicolo-ribaudo</code></a>)</li>
    </ul>
    </li>
    <li><code>babel-helpers</code>,
    <code>babel-plugin-proposal-decorators</code>
    <ul>
    <li><a
    href="https://redirect.github.com/babel/babel/pull/16132">#16132</a>
    Allow addInitializer in field decorator context (<a
    href="https://github.com/JLHwung"><code>@​JLHwung</code></a>)</li>
    </ul>
    </li>
    </ul>
    <h4>:bug: Bug Fix</h4>
    <ul>
    <li><code>babel-traverse</code>, <code>babel-types</code></li>
    </ul>
    <!-- raw HTML omitted -->
    </blockquote>
    <p>... (truncated)</p>
    </details>
    <details>
    <summary>Changelog</summary>
    <p><em>Sourced from <a
    href="https://github.com/babel/babel/blob/main/CHANGELOG.md"><code>@​babel/traverse</code>'s
    changelog</a>.</em></p>
    <blockquote>
    <h2>v7.23.6 (2023-12-11)</h2>
    <h4>:eyeglasses: Spec Compliance</h4>
    <ul>
    <li><code>babel-generator</code>, <code>babel-parser</code>,
    <code>babel-types</code>
    <ul>
    <li><a
    href="https://redirect.github.com/babel/babel/pull/16154">#16154</a>
    Remove <code>TSPropertySignature.initializer</code> (<a
    href="https://github.com/fisker"><code>@​fisker</code></a>)</li>
    </ul>
    </li>
    <li><code>babel-helpers</code>,
    <code>babel-plugin-proposal-decorators</code>,
    <code>babel-plugin-transform-class-properties</code>,
    <code>babel-plugin-transform-class-static-block</code>,
    <code>babel-plugin-transform-runtime</code>,
    <code>babel-preset-env</code>, <code>babel-runtime-corejs2</code>,
    <code>babel-runtime-corejs3</code>, <code>babel-runtime</code>,
    <code>babel-types</code>
    <ul>
    <li><a
    href="https://redirect.github.com/babel/babel/pull/16139">#16139</a>
    Apply <code>toPropertyKey</code> on decorator context name (<a
    href="https://github.com/JLHwung"><code>@​JLHwung</code></a>)</li>
    </ul>
    </li>
    </ul>
    <h4>:bug: Bug Fix</h4>
    <ul>
    <li><code>babel-generator</code>
    <ul>
    <li><a
    href="https://redirect.github.com/babel/babel/pull/16166">#16166</a>
    fix: Correctly indenting when <code>retainLines</code> is enabled (<a
    href="https://github.com/liuxingbaoyu"><code>@​liuxingbaoyu</code></a>)</li>
    </ul>
    </li>
    <li><code>babel-helpers</code>,
    <code>babel-plugin-proposal-explicit-resource-management</code>
    <ul>
    <li><a
    href="https://redirect.github.com/babel/babel/pull/16150">#16150</a>
    <code>using</code>: Allow looking up <code>Symbol.dispose</code> on a
    function (<a
    href="https://github.com/odinho"><code>@​odinho</code></a>)</li>
    </ul>
    </li>
    <li><code>babel-plugin-proposal-decorators</code>,
    <code>babel-plugin-transform-class-properties</code>
    <ul>
    <li><a
    href="https://redirect.github.com/babel/babel/pull/16161">#16161</a>
    Ensure the <code>[[@@toPrimitive]]</code> call of a decorated class
    member key is invoked once (<a
    href="https://github.com/JLHwung"><code>@​JLHwung</code></a>)</li>
    <li><a
    href="https://redirect.github.com/babel/babel/pull/16148">#16148</a>
    Support named evaluation for decorated anonymous class exp (<a
    href="https://github.com/JLHwung"><code>@​JLHwung</code></a>)</li>
    </ul>
    </li>
    <li><code>babel-plugin-transform-for-of</code>,
    <code>babel-preset-env</code>
    <ul>
    <li><a
    href="https://redirect.github.com/babel/babel/pull/16011">#16011</a>
    fix: <code>for of</code> with <code>iterableIsArray</code> and shadowing
    variable (<a
    href="https://github.com/liuxingbaoyu"><code>@​liuxingbaoyu</code></a>)</li>
    </ul>
    </li>
    <li><code>babel-helpers</code>,
    <code>babel-plugin-proposal-decorators</code>,
    <code>babel-runtime-corejs2</code>, <code>babel-runtime-corejs3</code>,
    <code>babel-runtime</code>
    <ul>
    <li><a
    href="https://redirect.github.com/babel/babel/pull/16144">#16144</a> Set
    function name for decorated private non-field elements (<a
    href="https://github.com/JLHwung"><code>@​JLHwung</code></a>)</li>
    </ul>
    </li>
    <li><code>babel-plugin-transform-typescript</code>
    <ul>
    <li><a
    href="https://redirect.github.com/babel/babel/pull/16137">#16137</a> Fix
    references to enum values with merging (<a
    href="https://github.com/nicolo-ribaudo"><code>@​nicolo-ribaudo</code></a>)</li>
    </ul>
    </li>
    </ul>
    <h4>:microscope: Output optimization</h4>
    <ul>
    <li><code>babel-helper-create-class-features-plugin</code>,
    <code>babel-plugin-transform-class-properties</code>
    <ul>
    <li><a
    href="https://redirect.github.com/babel/babel/pull/16159">#16159</a>
    Reuse computed key memoiser (<a
    href="https://github.com/JLHwung"><code>@​JLHwung</code></a>)</li>
    </ul>
    </li>
    <li><code>babel-helpers</code>,
    <code>babel-plugin-proposal-decorators</code>
    <ul>
    <li><a
    href="https://redirect.github.com/babel/babel/pull/16160">#16160</a>
    Optimize decorator helper size (<a
    href="https://github.com/liuxingbaoyu"><code>@​liuxingbaoyu</code></a>)</li>
    </ul>
    </li>
    </ul>
    <h2>v7.23.5 (2023-11-29)</h2>
    <h4>:eyeglasses: Spec Compliance</h4>
    <ul>
    <li><code>babel-plugin-proposal-decorators</code>
    <ul>
    <li><a
    href="https://redirect.github.com/babel/babel/pull/16138">#16138</a>
    Class binding is in TDZ during decorators initialization (<a
    href="https://github.com/nicolo-ribaudo"><code>@​nicolo-ribaudo</code></a>)</li>
    </ul>
    </li>
    <li><code>babel-helpers</code>,
    <code>babel-plugin-proposal-decorators</code>
    <ul>
    <li><a
    href="https://redirect.github.com/babel/babel/pull/16132">#16132</a>
    Allow addInitializer in field decorator context (<a
    href="https://github.com/JLHwung"><code>@​JLHwung</code></a>)</li>
    </ul>
    </li>
    </ul>
    <h4>:bug: Bug Fix</h4>
    <ul>
    <li><code>babel-traverse</code>, <code>babel-types</code>
    <ul>
    <li><a
    href="https://redirect.github.com/babel/babel/pull/16131">#16131</a> Do
    not remove bindings when removing assignment expression path (<a
    href="https://github.com/nicolo-ribaudo"><code>@​nicolo-ribaudo</code></a>)</li>
    </ul>
    </li>
    <li><code>babel-plugin-transform-classes</code>
    <ul>
    <li><a
    href="https://redirect.github.com/babel/babel/pull/16135">#16135</a>
    Require class properties transform when compiling class with private
    fields (<a
    href="https://github.com/nicolo-ribaudo"><code>@​nicolo-ribaudo</code></a>)</li>
    </ul>
    </li>
    <li><code>babel-generator</code>
    <ul>
    <li><a
    href="https://redirect.github.com/babel/babel/pull/16122">#16122</a>
    fix: Missing parentheses after line break (<a
    href="https://github.com/liuxingbaoyu"><code>@​liuxingbaoyu</code></a>)</li>
    </ul>
    </li>
    <li><code>babel-helpers</code>
    <ul>
    <li><a
    href="https://redirect.github.com/babel/babel/pull/16130">#16130</a> Fix
    helpers internal fns names conflict resolution (<a
    href="https://github.com/nicolo-ribaudo"><code>@​nicolo-ribaudo</code></a>)</li>
    </ul>
    </li>
    <li><code>babel-helper-create-class-features-plugin</code>,
    <code>babel-plugin-transform-class-properties</code>,
    <code>babel-plugin-transform-typescript</code>
    <ul>
    <li><a
    href="https://redirect.github.com/babel/babel/pull/16123">#16123</a>
    Simplify class fields injetion after <code>super()</code> (<a
    href="https://github.com/nicolo-ribaudo"><code>@​nicolo-ribaudo</code></a>)</li>
    </ul>
    </li>
    <li><code>babel-generator</code>,
    <code>babel-plugin-transform-modules-commonjs</code>,
    <code>babel-plugin-transform-parameters</code>,
    <code>babel-plugin-transform-typescript</code>,
    <code>babel-traverse</code>
    <ul>
    <li><a
    href="https://redirect.github.com/babel/babel/pull/16110">#16110</a>
    fix: Unexpected duplication of comments (<a
    href="https://github.com/liuxingbaoyu"><code>@​liuxingbaoyu</code></a>)</li>
    </ul>
    </li>
    <li><code>babel-eslint-plugin</code></li>
    </ul>
    <!-- raw HTML omitted -->
    </blockquote>
    <p>... (truncated)</p>
    </details>
    <details>
    <summary>Commits</summary>
    <ul>
    <li><a
    href="https://github.com/babel/babel/commit/d02c1f76ac441381b1ba3b5cad93bdd030b8fd63"><code>d02c1f7</code></a>
    v7.23.6</li>
    <li><a
    href="https://github.com/babel/babel/commit/cce807f1eb638ee3030112dc190cbee032760888"><code>cce807f</code></a>
    Bump debug to ^4.3.1 (<a
    href="https://github.com/babel/babel/tree/HEAD/packages/babel-traverse/issues/16164">#16164</a>)</li>
    <li><a
    href="https://github.com/babel/babel/commit/8479012ee722ffe316308c1789837e3836580de7"><code>8479012</code></a>
    v7.23.5</li>
    <li><a
    href="https://github.com/babel/babel/commit/da7dc40fdab77e9c8e190e6ec1d80d4f5eedcfd5"><code>da7dc40</code></a>
    Do not remove bindings when removing assignment expression path (<a
    href="https://github.com/babel/babel/tree/HEAD/packages/babel-traverse/issues/16131">#16131</a>)</li>
    <li><a
    href="https://github.com/babel/babel/commit/fadc081db163130903539e81c2384233882b0436"><code>fadc081</code></a>
    fix: Unexpected duplication of comments (<a
    href="https://github.com/babel/babel/tree/HEAD/packages/babel-traverse/issues/16110">#16110</a>)</li>
    <li><a
    href="https://github.com/babel/babel/commit/13a5c83807ab755a1cfb3059a7370110b4c8370e"><code>13a5c83</code></a>
    v7.23.4</li>
    <li><a
    href="https://github.com/babel/babel/commit/5e1c5f047cbcb3a47de5a09487818661bcce3743"><code>5e1c5f0</code></a>
    Use prettier 3.1 (<a
    href="https://github.com/babel/babel/tree/HEAD/packages/babel-traverse/issues/16098">#16098</a>)</li>
    <li><a
    href="https://github.com/babel/babel/commit/1bce5c9d51abda279f374b54cef79939c3cc608d"><code>1bce5c9</code></a>
    v7.23.3</li>
    <li><a
    href="https://github.com/babel/babel/commit/4fb4fa63e7d15b3993d466e79d5051ab1b1b8989"><code>4fb4fa6</code></a>
    Avoid dynamic dispatch when calling wrapCheck (<a
    href="https://github.com/babel/babel/tree/HEAD/packages/babel-traverse/issues/16060">#16060</a>)</li>
    <li><a
    href="https://github.com/babel/babel/commit/6d9725cd62511816a1ac6a0ef6a4ef078fea6359"><code>6d9725c</code></a>
    [babel 8] Inline <code>toSequenceExpression</code> into
    <code>@babel/traverse</code> (<a
    href="https://github.com/babel/babel/tree/HEAD/packages/babel-traverse/issues/16057">#16057</a>)</li>
    <li>Additional commits viewable in <a
    href="https://github.com/babel/babel/commits/v7.23.6/packages/babel-traverse">compare
    view</a></li>
    </ul>
    </details>
    <br />
    
    
    [![Dependabot compatibility
    score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=@babel/traverse&package-manager=npm_and_yarn&previous-version=7.22.8&new-version=7.23.6)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)
    
    You can trigger a rebase of this PR by commenting `@dependabot rebase`.
    
    [//]: # (dependabot-automerge-start)
    [//]: # (dependabot-automerge-end)
    
    ---
    
    <details>
    <summary>Dependabot commands and options</summary>
    <br />
    
    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 show <dependency name> ignore conditions` will show all
    of the ignore conditions of the specified dependency
    - `@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)
    You can disable automated security fix PRs for this repo from the
    [Security Alerts page](https://github.com/dmnd/dedent/network/alerts).
    
    </details>
    
    > **Note**
    > Automatic rebases have been disabled on this pull request as it has
    been open for over 30 days.
    
    ---------
    
    Signed-off-by: dependabot[bot] <support@github.com>
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    Co-authored-by: Josh Goldberg <git@joshuakgoldberg.com>
    dependabot[bot] and JoshuaKGoldberg authored Feb 18, 2024
    Copy the full SHA
    e634f0e View commit details

Commits on Apr 10, 2024

  1. fix: \\n should be changed to \n only when escapeSpecialCharacters is…

    … set (#91)
    
    This PR proposes a fix to the issue #90.
    
    ## PR Checklist
    
    - [x] Addresses an existing open issue: fixes #90
    - [x] That issue was marked as [`status: accepting
    prs`](https://github.com/dmnd/dedent/issues?q=is%3Aopen+is%3Aissue+label%3A%22status%3A+accepting+prs%22)
    - [x] Steps in
    [CONTRIBUTING.md](https://github.com/dmnd/dedent/blob/main/.github/CONTRIBUTING.md)
    were taken
    fuenfundachtzig authored Apr 10, 2024
    Copy the full SHA
    4c133c1 View commit details
Showing with 11,218 additions and 4,890 deletions.
  1. +160 −0 .all-contributorsrc
  2. +44 −44 .babelrc
  3. +1 −0 .eslintignore
  4. +158 −11 .eslintrc.js
  5. +0 −10 .flowconfig
  6. +132 −0 .github/CODE_OF_CONDUCT.md
  7. +97 −0 .github/CONTRIBUTING.md
  8. +95 −0 .github/DEVELOPMENT.md
  9. +9 −0 .github/ISSUE_TEMPLATE.md
  10. +33 −0 .github/ISSUE_TEMPLATE/01-bug.yml
  11. +25 −0 .github/ISSUE_TEMPLATE/02-documentation.yml
  12. +27 −0 .github/ISSUE_TEMPLATE/03-feature.yml
  13. +27 −0 .github/ISSUE_TEMPLATE/04-tooling.yml
  14. +13 −0 .github/PULL_REQUEST_TEMPLATE.md
  15. +9 −0 .github/SECURITY.md
  16. +14 −0 .github/actions/prepare/action.yml
  17. +8 −0 .github/renovate.json
  18. +25 −0 .github/workflows/accessibility-alt-text-bot.yml
  19. +16 −0 .github/workflows/build.yml
  20. +28 −0 .github/workflows/compliance.yml
  21. +18 −0 .github/workflows/contributors.yml
  22. +15 −0 .github/workflows/lint-knip.yml
  23. +15 −0 .github/workflows/lint-markdown.yml
  24. +15 −0 .github/workflows/lint-package-json.yml
  25. +15 −0 .github/workflows/lint-packages.yml
  26. +15 −0 .github/workflows/lint-spelling.yml
  27. +16 −0 .github/workflows/lint.yml
  28. +27 −0 .github/workflows/post-release.yml
  29. +21 −0 .github/workflows/pr-review-requested.yml
  30. +15 −0 .github/workflows/prettier.yml
  31. +28 −0 .github/workflows/release.yml
  32. +18 −0 .github/workflows/test.yml
  33. +15 −0 .github/workflows/tsc.yml
  34. +2 −1 .gitignore
  35. +1 −0 .husky/.gitignore
  36. +3 −0 .husky/pre-commit
  37. +5 −0 .markdownlint.json
  38. +4 −0 .markdownlintignore
  39. +4 −0 .npmpackagejsonlintrc.json
  40. +1 −0 .nvmrc
  41. +4 −0 .prettierignore
  42. +9 −0 .prettierrc
  43. +18 −0 .release-it.json
  44. +0 −3 .vim/coc-settings.json
  45. +8 −0 .vscode/extensions.json
  46. +18 −1 .vscode/settings.json
  47. +0 −21 LICENSE
  48. +20 −0 LICENSE.md
  49. +80 −12 README.md
  50. +0 −5 __tests__/.eslintrc
  51. +0 −227 __tests__/dedent-tests.ts
  52. +32 −0 cspell.json
  53. +0 −77 dedent.ts
  54. +6 −0 jest.config.js
  55. +7 −0 knip.jsonc
  56. +21 −23 macro.js
  57. +123 −85 package.json
  58. +9,300 −0 pnpm-lock.yaml
  59. 0 __tests__/__snapshots__/dedent-macro-test.ts.snap → src/__snapshots__/dedent-macro.test.ts.snap
  60. +11 −5 __tests__/__snapshots__/dedent-tests.ts.snap → src/__snapshots__/dedent.test.ts.snap
  61. +31 −31 __tests__/dedent-macro-test.ts → src/dedent-macro.test.ts
  62. +239 −0 src/dedent.test.ts
  63. +80 −0 src/dedent.ts
  64. +11 −0 src/types.ts
  65. +1 −0 tsconfig.eslint.json
  66. +15 −12 tsconfig.json
  67. +10 −0 tsup.config.ts
  68. +0 −11 types.ts
  69. +0 −4,311 yarn.lock
160 changes: 160 additions & 0 deletions .all-contributorsrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,160 @@
{
"badgeTemplate": "<img alt=\"All Contributors: <%= contributors.length %> 👪\" src=\"https://img.shields.io/badge/all_contributors-<%= contributors.length %>_👪-21bb42.svg\" />",
"commit": false,
"commitConvention": "angular",
"contributors": [
{
"login": "JoshuaKGoldberg",
"name": "Josh Goldberg ✨",
"avatar_url": "https://avatars.githubusercontent.com/u/3335181?v=4",
"profile": "http://www.joshuakgoldberg.com/",
"contributions": [
"bug",
"code",
"doc",
"ideas",
"infra",
"maintenance",
"projectManagement",
"tool"
]
},
{
"login": "dmnd",
"name": "Desmond Brand",
"avatar_url": "https://avatars.githubusercontent.com/u/4427?v=4",
"profile": "https://synthesis.com/",
"contributions": [
"bug",
"code",
"doc",
"ideas",
"infra",
"maintenance",
"projectManagement",
"tool"
]
},
{
"login": "G-Rath",
"name": "Gareth Jones",
"avatar_url": "https://avatars.githubusercontent.com/u/3151613?v=4",
"profile": "https://github.com/G-Rath",
"contributions": ["code", "bug"]
},
{
"login": "jlarmstrongiv",
"name": "John L. Armstrong IV",
"avatar_url": "https://avatars.githubusercontent.com/u/20903247?v=4",
"profile": "https://github.com/jlarmstrongiv",
"contributions": ["bug"]
},
{
"login": "cometkim",
"name": "Hyeseong Kim",
"avatar_url": "https://avatars.githubusercontent.com/u/9696352?v=4",
"profile": "https://blog.cometkim.kr/",
"contributions": ["tool", "infra"]
},
{
"login": "adrianjost",
"name": "Adrian Jost",
"avatar_url": "https://avatars.githubusercontent.com/u/22987140?v=4",
"profile": "https://adrianjost.dev/",
"contributions": ["code"]
},
{
"login": "Haroenv",
"name": "Haroen Viaene",
"avatar_url": "https://avatars.githubusercontent.com/u/6270048?v=4",
"profile": "https://haroen.me/",
"contributions": ["code", "maintenance"]
},
{
"login": "phenomnomnominal",
"name": "Craig Spence",
"avatar_url": "https://avatars.githubusercontent.com/u/1086286?v=4",
"profile": "https://github.com/phenomnomnominal",
"contributions": ["code"]
},
{
"login": "pratapvardhan",
"name": "Pratap Vardhan",
"avatar_url": "https://avatars.githubusercontent.com/u/3757165?v=4",
"profile": "https://pratapvardhan.com/",
"contributions": ["code"]
},
{
"login": "bennypowers",
"name": "Benny Powers - עם ישראל חי!",
"avatar_url": "https://avatars.githubusercontent.com/u/1466420?v=4",
"profile": "https://bennypowers.dev/",
"contributions": ["tool"]
},
{
"login": "d07RiV",
"name": "d07riv",
"avatar_url": "https://avatars.githubusercontent.com/u/3448203?v=4",
"profile": "https://github.com/d07RiV",
"contributions": ["bug"]
},
{
"login": "lydell",
"name": "Simon Lydell",
"avatar_url": "https://avatars.githubusercontent.com/u/2142817?v=4",
"profile": "https://github.com/lydell",
"contributions": ["bug"]
},
{
"login": "mizdra",
"name": "mizdra",
"avatar_url": "https://avatars.githubusercontent.com/u/9639995?v=4",
"profile": "https://mizdra.net/",
"contributions": ["code"]
},
{
"login": "moll",
"name": "Andri Möll",
"avatar_url": "https://avatars.githubusercontent.com/u/156837?v=4",
"profile": "https://m811.com/",
"contributions": ["bug"]
},
{
"login": "otakustay",
"name": "Gray Zhang",
"avatar_url": "https://avatars.githubusercontent.com/u/639549?v=4",
"profile": "https://github.com/otakustay",
"contributions": ["bug"]
},
{
"login": "sirian",
"name": "sirian",
"avatar_url": "https://avatars.githubusercontent.com/u/897643?v=4",
"profile": "https://github.com/sirian",
"contributions": ["bug"]
},
{
"login": "yinm",
"name": "Yusuke Iinuma",
"avatar_url": "https://avatars.githubusercontent.com/u/13295106?v=4",
"profile": "https://github.com/yinm",
"contributions": ["code"]
},
{
"login": "yvele",
"name": "Yves M.",
"avatar_url": "https://avatars.githubusercontent.com/u/4225430?v=4",
"profile": "https://github.com/yvele",
"contributions": ["tool"]
}
],
"contributorsPerLine": 7,
"contributorsSortAlphabetically": true,
"files": ["README.md"],
"imageSize": 100,
"projectName": "dedent",
"projectOwner": "dmnd",
"repoHost": "https://github.com",
"repoType": "github"
}

88 changes: 44 additions & 44 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -1,46 +1,46 @@
{
"env": {
"legacy": {
"plugins": [["add-module-exports", { "addDefaultProperty": true }]],
"presets": [
"@babel/preset-typescript",
[
"@babel/preset-env",
{
"modules": "commonjs",
"targets": {
"node": 10
}
}
]
]
},
"modern": {
"presets": [
"@babel/preset-typescript",
[
"@babel/preset-env",
{
"modules": false,
"bugfixes": true,
"targets": {
"esmodules": true
}
}
]
]
}
},
"presets": [
"@babel/preset-typescript",
[
"@babel/preset-env",
{
"modules": "commonjs",
"targets": {
"node": "current"
}
}
]
]
"env": {
"legacy": {
"plugins": [["add-module-exports", { "addDefaultProperty": true }]],
"presets": [
"@babel/preset-typescript",
[
"@babel/preset-env",
{
"modules": "commonjs",
"targets": {
"node": 10
}
}
]
]
},
"modern": {
"presets": [
"@babel/preset-typescript",
[
"@babel/preset-env",
{
"modules": false,
"bugfixes": true,
"targets": {
"esmodules": true
}
}
]
]
}
},
"presets": [
"@babel/preset-typescript",
[
"@babel/preset-env",
{
"modules": "commonjs",
"targets": {
"node": "current"
}
}
]
]
}
1 change: 1 addition & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
dist/
pnpm-lock.yaml

# https://github.com/dmnd/dedent/issues/52
macro.js
Loading