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: prettier/plugin-xml
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v2.2.0
Choose a base ref
...
head repository: prettier/plugin-xml
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v3.0.0
Choose a head ref

Commits on May 13, 2022

  1. chore(deps-dev): bump @types/node from 17.0.32 to 17.0.33

    Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 17.0.32 to 17.0.33.
    - [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
    - [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)
    
    ---
    updated-dependencies:
    - dependency-name: "@types/node"
      dependency-type: direct:development
      update-type: version-update:semver-patch
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    dependabot[bot] authored May 13, 2022
    Copy the full SHA
    4b2d6da View commit details
  2. chore(deps-dev): bump @types/prettier from 2.6.0 to 2.6.1

    Bumps [@types/prettier](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/prettier) from 2.6.0 to 2.6.1.
    - [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
    - [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/prettier)
    
    ---
    updated-dependencies:
    - dependency-name: "@types/prettier"
      dependency-type: direct:development
      update-type: version-update:semver-patch
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    dependabot[bot] authored May 13, 2022
    Copy the full SHA
    55573bb View commit details
  3. Merge pull request #471 from prettier/dependabot/npm_and_yarn/types/n…

    …ode-17.0.33
    
    chore(deps-dev): bump @types/node from 17.0.32 to 17.0.33
    github-actions[bot] authored May 13, 2022
    Copy the full SHA
    c6b5dd1 View commit details
  4. Merge pull request #472 from prettier/dependabot/npm_and_yarn/types/p…

    …rettier-2.6.1
    
    chore(deps-dev): bump @types/prettier from 2.6.0 to 2.6.1
    github-actions[bot] authored May 13, 2022
    Copy the full SHA
    f1b07af View commit details

Commits on May 17, 2022

  1. chore(deps-dev): bump @typescript-eslint/parser from 5.23.0 to 5.24.0

    Bumps [@typescript-eslint/parser](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/parser) from 5.23.0 to 5.24.0.
    - [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases)
    - [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/parser/CHANGELOG.md)
    - [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v5.24.0/packages/parser)
    
    ---
    updated-dependencies:
    - dependency-name: "@typescript-eslint/parser"
      dependency-type: direct:development
      update-type: version-update:semver-minor
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    dependabot[bot] authored May 17, 2022
    Copy the full SHA
    24bb964 View commit details
  2. chore(deps-dev): bump @types/node from 17.0.33 to 17.0.34

    Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 17.0.33 to 17.0.34.
    - [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
    - [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)
    
    ---
    updated-dependencies:
    - dependency-name: "@types/node"
      dependency-type: direct:development
      update-type: version-update:semver-patch
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    dependabot[bot] authored May 17, 2022
    Copy the full SHA
    05bd40d View commit details
  3. Merge pull request #473 from prettier/dependabot/npm_and_yarn/typescr…

    …ipt-eslint/parser-5.24.0
    
    chore(deps-dev): bump @typescript-eslint/parser from 5.23.0 to 5.24.0
    github-actions[bot] authored May 17, 2022
    Copy the full SHA
    15a72cd View commit details
  4. Merge pull request #475 from prettier/dependabot/npm_and_yarn/types/n…

    …ode-17.0.34
    
    chore(deps-dev): bump @types/node from 17.0.33 to 17.0.34
    github-actions[bot] authored May 17, 2022
    Copy the full SHA
    18a582d View commit details
  5. chore(deps-dev): bump @typescript-eslint/eslint-plugin

    Bumps [@typescript-eslint/eslint-plugin](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/eslint-plugin) from 5.23.0 to 5.24.0.
    - [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases)
    - [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/CHANGELOG.md)
    - [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v5.24.0/packages/eslint-plugin)
    
    ---
    updated-dependencies:
    - dependency-name: "@typescript-eslint/eslint-plugin"
      dependency-type: direct:development
      update-type: version-update:semver-minor
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    dependabot[bot] authored May 17, 2022
    Copy the full SHA
    f9ed9f9 View commit details
  6. Merge pull request #474 from prettier/dependabot/npm_and_yarn/typescr…

    …ipt-eslint/eslint-plugin-5.24.0
    
    chore(deps-dev): bump @typescript-eslint/eslint-plugin from 5.23.0 to 5.24.0
    github-actions[bot] authored May 17, 2022
    Copy the full SHA
    fa07282 View commit details

Commits on May 18, 2022

  1. chore(deps-dev): bump @typescript-eslint/eslint-plugin

    Bumps [@typescript-eslint/eslint-plugin](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/eslint-plugin) from 5.24.0 to 5.25.0.
    - [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases)
    - [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/CHANGELOG.md)
    - [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v5.25.0/packages/eslint-plugin)
    
    ---
    updated-dependencies:
    - dependency-name: "@typescript-eslint/eslint-plugin"
      dependency-type: direct:development
      update-type: version-update:semver-minor
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    dependabot[bot] authored May 18, 2022
    Copy the full SHA
    6c2c3bf View commit details
  2. Merge pull request #476 from prettier/dependabot/npm_and_yarn/typescr…

    …ipt-eslint/eslint-plugin-5.25.0
    
    chore(deps-dev): bump @typescript-eslint/eslint-plugin from 5.24.0 to 5.25.0
    github-actions[bot] authored May 18, 2022
    Copy the full SHA
    5086c4e View commit details
  3. chore(deps-dev): bump @typescript-eslint/parser from 5.24.0 to 5.25.0

    Bumps [@typescript-eslint/parser](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/parser) from 5.24.0 to 5.25.0.
    - [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases)
    - [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/parser/CHANGELOG.md)
    - [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v5.25.0/packages/parser)
    
    ---
    updated-dependencies:
    - dependency-name: "@typescript-eslint/parser"
      dependency-type: direct:development
      update-type: version-update:semver-minor
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    dependabot[bot] authored May 18, 2022
    Copy the full SHA
    cfaa3e5 View commit details
  4. Merge pull request #477 from prettier/dependabot/npm_and_yarn/typescr…

    …ipt-eslint/parser-5.25.0
    
    chore(deps-dev): bump @typescript-eslint/parser from 5.24.0 to 5.25.0
    github-actions[bot] authored May 18, 2022
    Copy the full SHA
    0615ff2 View commit details

Commits on May 20, 2022

  1. chore(deps-dev): bump @types/node from 17.0.34 to 17.0.35

    Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 17.0.34 to 17.0.35.
    - [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
    - [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)
    
    ---
    updated-dependencies:
    - dependency-name: "@types/node"
      dependency-type: direct:development
      update-type: version-update:semver-patch
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    dependabot[bot] authored May 20, 2022
    Copy the full SHA
    522c153 View commit details
  2. Merge pull request #480 from prettier/dependabot/npm_and_yarn/types/n…

    …ode-17.0.35
    
    chore(deps-dev): bump @types/node from 17.0.34 to 17.0.35
    github-actions[bot] authored May 20, 2022
    Copy the full SHA
    d913f35 View commit details

Commits on May 23, 2022

  1. chore(deps-dev): bump ts-node from 10.7.0 to 10.8.0

    Bumps [ts-node](https://github.com/TypeStrong/ts-node) from 10.7.0 to 10.8.0.
    - [Release notes](https://github.com/TypeStrong/ts-node/releases)
    - [Commits](TypeStrong/ts-node@v10.7.0...v10.8.0)
    
    ---
    updated-dependencies:
    - dependency-name: ts-node
      dependency-type: direct:development
      update-type: version-update:semver-minor
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    dependabot[bot] authored May 23, 2022
    Copy the full SHA
    2fe9150 View commit details
  2. chore(deps-dev): bump eslint from 8.15.0 to 8.16.0

    Bumps [eslint](https://github.com/eslint/eslint) from 8.15.0 to 8.16.0.
    - [Release notes](https://github.com/eslint/eslint/releases)
    - [Changelog](https://github.com/eslint/eslint/blob/main/CHANGELOG.md)
    - [Commits](eslint/eslint@v8.15.0...v8.16.0)
    
    ---
    updated-dependencies:
    - dependency-name: eslint
      dependency-type: direct:development
      update-type: version-update:semver-minor
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    dependabot[bot] authored May 23, 2022
    Copy the full SHA
    39b0a66 View commit details
  3. Merge pull request #481 from prettier/dependabot/npm_and_yarn/ts-node…

    …-10.8.0
    
    chore(deps-dev): bump ts-node from 10.7.0 to 10.8.0
    github-actions[bot] authored May 23, 2022
    Copy the full SHA
    70acb98 View commit details
  4. Merge pull request #482 from prettier/dependabot/npm_and_yarn/eslint-…

    …8.16.0
    
    chore(deps-dev): bump eslint from 8.15.0 to 8.16.0
    github-actions[bot] authored May 23, 2022
    Copy the full SHA
    9c0d013 View commit details

Commits on May 24, 2022

  1. chore(deps-dev): bump @typescript-eslint/parser from 5.25.0 to 5.26.0

    Bumps [@typescript-eslint/parser](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/parser) from 5.25.0 to 5.26.0.
    - [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases)
    - [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/parser/CHANGELOG.md)
    - [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v5.26.0/packages/parser)
    
    ---
    updated-dependencies:
    - dependency-name: "@typescript-eslint/parser"
      dependency-type: direct:development
      update-type: version-update:semver-minor
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    dependabot[bot] authored May 24, 2022
    Copy the full SHA
    1a71fa8 View commit details
  2. Merge pull request #483 from prettier/dependabot/npm_and_yarn/typescr…

    …ipt-eslint/parser-5.26.0
    
    chore(deps-dev): bump @typescript-eslint/parser from 5.25.0 to 5.26.0
    github-actions[bot] authored May 24, 2022
    Copy the full SHA
    de26d7e View commit details
  3. chore(deps-dev): bump @typescript-eslint/eslint-plugin

    Bumps [@typescript-eslint/eslint-plugin](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/eslint-plugin) from 5.25.0 to 5.26.0.
    - [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases)
    - [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/CHANGELOG.md)
    - [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v5.26.0/packages/eslint-plugin)
    
    ---
    updated-dependencies:
    - dependency-name: "@typescript-eslint/eslint-plugin"
      dependency-type: direct:development
      update-type: version-update:semver-minor
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    dependabot[bot] authored May 24, 2022
    Copy the full SHA
    d104ffe View commit details
  4. Merge pull request #484 from prettier/dependabot/npm_and_yarn/typescr…

    …ipt-eslint/eslint-plugin-5.26.0
    
    chore(deps-dev): bump @typescript-eslint/eslint-plugin from 5.25.0 to 5.26.0
    github-actions[bot] authored May 24, 2022
    Copy the full SHA
    ecb9b2a View commit details

Commits on May 25, 2022

  1. chore(deps-dev): bump typescript from 4.6.4 to 4.7.2

    Bumps [typescript](https://github.com/Microsoft/TypeScript) from 4.6.4 to 4.7.2.
    - [Release notes](https://github.com/Microsoft/TypeScript/releases)
    - [Commits](microsoft/TypeScript@v4.6.4...v4.7.2)
    
    ---
    updated-dependencies:
    - dependency-name: typescript
      dependency-type: direct:development
      update-type: version-update:semver-minor
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    dependabot[bot] authored May 25, 2022
    Copy the full SHA
    ef3e56f View commit details
  2. chore(deps-dev): bump ts-jest from 28.0.2 to 28.0.3

    Bumps [ts-jest](https://github.com/kulshekhar/ts-jest) from 28.0.2 to 28.0.3.
    - [Release notes](https://github.com/kulshekhar/ts-jest/releases)
    - [Changelog](https://github.com/kulshekhar/ts-jest/blob/main/CHANGELOG.md)
    - [Commits](kulshekhar/ts-jest@v28.0.2...v28.0.3)
    
    ---
    updated-dependencies:
    - dependency-name: ts-jest
      dependency-type: direct:development
      update-type: version-update:semver-patch
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    dependabot[bot] authored May 25, 2022
    Copy the full SHA
    9f039a4 View commit details
  3. Merge pull request #485 from prettier/dependabot/npm_and_yarn/typescr…

    …ipt-4.7.2
    
    chore(deps-dev): bump typescript from 4.6.4 to 4.7.2
    github-actions[bot] authored May 25, 2022
    Copy the full SHA
    03ba674 View commit details
  4. Merge pull request #486 from prettier/dependabot/npm_and_yarn/ts-jest…

    …-28.0.3
    
    chore(deps-dev): bump ts-jest from 28.0.2 to 28.0.3
    github-actions[bot] authored May 25, 2022
    Copy the full SHA
    8d52cbc View commit details

Commits on May 30, 2022

  1. chore(deps-dev): bump @types/node from 17.0.35 to 17.0.36

    Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 17.0.35 to 17.0.36.
    - [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
    - [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)
    
    ---
    updated-dependencies:
    - dependency-name: "@types/node"
      dependency-type: direct:development
      update-type: version-update:semver-patch
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    dependabot[bot] authored May 30, 2022
    Copy the full SHA
    8a85519 View commit details
  2. chore(deps-dev): bump @types/prettier from 2.6.1 to 2.6.3

    Bumps [@types/prettier](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/prettier) from 2.6.1 to 2.6.3.
    - [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
    - [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/prettier)
    
    ---
    updated-dependencies:
    - dependency-name: "@types/prettier"
      dependency-type: direct:development
      update-type: version-update:semver-patch
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    dependabot[bot] authored May 30, 2022
    Copy the full SHA
    3ad63be View commit details
  3. Merge pull request #487 from prettier/dependabot/npm_and_yarn/types/n…

    …ode-17.0.36
    
    chore(deps-dev): bump @types/node from 17.0.35 to 17.0.36
    github-actions[bot] authored May 30, 2022
    Copy the full SHA
    f50b552 View commit details
  4. Merge pull request #488 from prettier/dependabot/npm_and_yarn/types/p…

    …rettier-2.6.3
    
    chore(deps-dev): bump @types/prettier from 2.6.1 to 2.6.3
    github-actions[bot] authored May 30, 2022
    Copy the full SHA
    05098e9 View commit details

Commits on May 31, 2022

  1. chore(deps-dev): bump @typescript-eslint/parser from 5.26.0 to 5.27.0

    Bumps [@typescript-eslint/parser](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/parser) from 5.26.0 to 5.27.0.
    - [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases)
    - [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/parser/CHANGELOG.md)
    - [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v5.27.0/packages/parser)
    
    ---
    updated-dependencies:
    - dependency-name: "@typescript-eslint/parser"
      dependency-type: direct:development
      update-type: version-update:semver-minor
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    dependabot[bot] authored May 31, 2022
    Copy the full SHA
    8e8aede View commit details
  2. Merge pull request #489 from prettier/dependabot/npm_and_yarn/typescr…

    …ipt-eslint/parser-5.27.0
    
    chore(deps-dev): bump @typescript-eslint/parser from 5.26.0 to 5.27.0
    github-actions[bot] authored May 31, 2022
    Copy the full SHA
    cc5853e View commit details
  3. chore(deps-dev): bump @typescript-eslint/eslint-plugin

    Bumps [@typescript-eslint/eslint-plugin](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/eslint-plugin) from 5.26.0 to 5.27.0.
    - [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases)
    - [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/CHANGELOG.md)
    - [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v5.27.0/packages/eslint-plugin)
    
    ---
    updated-dependencies:
    - dependency-name: "@typescript-eslint/eslint-plugin"
      dependency-type: direct:development
      update-type: version-update:semver-minor
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    dependabot[bot] authored May 31, 2022
    Copy the full SHA
    3ea1068 View commit details
  4. Merge pull request #490 from prettier/dependabot/npm_and_yarn/typescr…

    …ipt-eslint/eslint-plugin-5.27.0
    
    chore(deps-dev): bump @typescript-eslint/eslint-plugin from 5.26.0 to 5.27.0
    github-actions[bot] authored May 31, 2022
    Copy the full SHA
    2a99c4a View commit details

Commits on Jun 1, 2022

  1. chore(deps-dev): bump @types/node from 17.0.36 to 17.0.38

    Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 17.0.36 to 17.0.38.
    - [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
    - [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)
    
    ---
    updated-dependencies:
    - dependency-name: "@types/node"
      dependency-type: direct:development
      update-type: version-update:semver-patch
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    dependabot[bot] authored Jun 1, 2022
    Copy the full SHA
    41fe394 View commit details
  2. Merge pull request #491 from prettier/dependabot/npm_and_yarn/types/n…

    …ode-17.0.38
    
    chore(deps-dev): bump @types/node from 17.0.36 to 17.0.38
    github-actions[bot] authored Jun 1, 2022
    Copy the full SHA
    6b320ea View commit details

Commits on Jun 2, 2022

  1. chore(deps-dev): bump @types/jest from 27.5.1 to 28.1.0

    Bumps [@types/jest](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/jest) from 27.5.1 to 28.1.0.
    - [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
    - [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/jest)
    
    ---
    updated-dependencies:
    - dependency-name: "@types/jest"
      dependency-type: direct:development
      update-type: version-update:semver-major
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    dependabot[bot] authored Jun 2, 2022
    Copy the full SHA
    d52b602 View commit details
  2. Merge pull request #492 from prettier/dependabot/npm_and_yarn/types/j…

    …est-28.1.0
    
    chore(deps-dev): bump @types/jest from 27.5.1 to 28.1.0
    github-actions[bot] authored Jun 2, 2022
    Copy the full SHA
    bce9c10 View commit details

Commits on Jun 6, 2022

  1. chore(deps-dev): bump ts-node from 10.8.0 to 10.8.1

    Bumps [ts-node](https://github.com/TypeStrong/ts-node) from 10.8.0 to 10.8.1.
    - [Release notes](https://github.com/TypeStrong/ts-node/releases)
    - [Commits](TypeStrong/ts-node@v10.8.0...v10.8.1)
    
    ---
    updated-dependencies:
    - dependency-name: ts-node
      dependency-type: direct:development
      update-type: version-update:semver-patch
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    dependabot[bot] authored Jun 6, 2022
    Copy the full SHA
    0b4d87e View commit details
  2. chore(deps-dev): bump ts-jest from 28.0.3 to 28.0.4

    Bumps [ts-jest](https://github.com/kulshekhar/ts-jest) from 28.0.3 to 28.0.4.
    - [Release notes](https://github.com/kulshekhar/ts-jest/releases)
    - [Changelog](https://github.com/kulshekhar/ts-jest/blob/main/CHANGELOG.md)
    - [Commits](kulshekhar/ts-jest@v28.0.3...v28.0.4)
    
    ---
    updated-dependencies:
    - dependency-name: ts-jest
      dependency-type: direct:development
      update-type: version-update:semver-patch
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    dependabot[bot] authored Jun 6, 2022
    Copy the full SHA
    3018645 View commit details
  3. chore(deps-dev): bump typescript from 4.7.2 to 4.7.3

    Bumps [typescript](https://github.com/Microsoft/TypeScript) from 4.7.2 to 4.7.3.
    - [Release notes](https://github.com/Microsoft/TypeScript/releases)
    - [Commits](microsoft/TypeScript@v4.7.2...v4.7.3)
    
    ---
    updated-dependencies:
    - dependency-name: typescript
      dependency-type: direct:development
      update-type: version-update:semver-patch
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    dependabot[bot] authored Jun 6, 2022
    Copy the full SHA
    db20ef2 View commit details
  4. chore(deps-dev): bump @types/jest from 28.1.0 to 28.1.1

    Bumps [@types/jest](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/jest) from 28.1.0 to 28.1.1.
    - [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
    - [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/jest)
    
    ---
    updated-dependencies:
    - dependency-name: "@types/jest"
      dependency-type: direct:development
      update-type: version-update:semver-patch
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    dependabot[bot] authored Jun 6, 2022
    Copy the full SHA
    2a181b4 View commit details
  5. chore(deps-dev): bump @types/node from 17.0.38 to 17.0.40

    Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 17.0.38 to 17.0.40.
    - [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
    - [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)
    
    ---
    updated-dependencies:
    - dependency-name: "@types/node"
      dependency-type: direct:development
      update-type: version-update:semver-patch
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    dependabot[bot] authored Jun 6, 2022
    Copy the full SHA
    cd741ab View commit details
  6. Merge pull request #493 from prettier/dependabot/npm_and_yarn/ts-node…

    …-10.8.1
    
    chore(deps-dev): bump ts-node from 10.8.0 to 10.8.1
    github-actions[bot] authored Jun 6, 2022
    Copy the full SHA
    17bb471 View commit details
  7. Merge pull request #494 from prettier/dependabot/npm_and_yarn/ts-jest…

    …-28.0.4
    
    chore(deps-dev): bump ts-jest from 28.0.3 to 28.0.4
    github-actions[bot] authored Jun 6, 2022
    Copy the full SHA
    68b95ff View commit details
  8. chore(deps-dev): bump eslint from 8.16.0 to 8.17.0

    Bumps [eslint](https://github.com/eslint/eslint) from 8.16.0 to 8.17.0.
    - [Release notes](https://github.com/eslint/eslint/releases)
    - [Changelog](https://github.com/eslint/eslint/blob/main/CHANGELOG.md)
    - [Commits](eslint/eslint@v8.16.0...v8.17.0)
    
    ---
    updated-dependencies:
    - dependency-name: eslint
      dependency-type: direct:development
      update-type: version-update:semver-minor
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    dependabot[bot] authored Jun 6, 2022
    Copy the full SHA
    8226380 View commit details
  9. Merge pull request #495 from prettier/dependabot/npm_and_yarn/typescr…

    …ipt-4.7.3
    
    chore(deps-dev): bump typescript from 4.7.2 to 4.7.3
    github-actions[bot] authored Jun 6, 2022
    Copy the full SHA
    c085a74 View commit details
  10. Merge pull request #496 from prettier/dependabot/npm_and_yarn/types/j…

    …est-28.1.1
    
    chore(deps-dev): bump @types/jest from 28.1.0 to 28.1.1
    github-actions[bot] authored Jun 6, 2022
    Copy the full SHA
    7328a0b View commit details
10 changes: 9 additions & 1 deletion .github/ISSUE_TEMPLATE/formatting.yml
Original file line number Diff line number Diff line change
@@ -13,6 +13,13 @@ body:
label: printWidth
description: What value do you have the `printWidth` option set to? (Defaults to `80`.)
placeholder: "80"
- type: input
attributes:
label: singleAttributePerLine
description: What value do you have the `singleAttributePerLine` option set to? (Defaults to `false`.)
options:
- "true"
- "false"
- type: input
attributes:
label: tabWidth
@@ -24,7 +31,8 @@ body:
description: What value do you have the `xmlWhitespaceSensitivity` option set to? (Defaults to `"strict"`.) Be 100% sure changing this to `"ignore"` doesn't fix your issue!
options:
- "strict"
- "ignore"
- "preserve"
- "ignore"
validations:
required: true
- type: dropdown
4 changes: 4 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -4,3 +4,7 @@ updates:
directory: "/"
schedule:
interval: "daily"
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "daily"
22 changes: 22 additions & 0 deletions .github/workflows/auto-merge.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Dependabot auto-merge
on: pull_request

permissions:
contents: write
pull-requests: write

jobs:
dependabot:
runs-on: ubuntu-latest
if: ${{ github.actor == 'dependabot[bot]' }}
steps:
- name: Dependabot metadata
id: metadata
uses: dependabot/fetch-metadata@v1.6.0
with:
github-token: "${{ secrets.GITHUB_TOKEN }}"
- name: Enable auto-merge for Dependabot PRs
run: gh pr merge --auto --merge "$PR_URL"
env:
PR_URL: ${{github.event.pull_request.html_url}}
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
26 changes: 6 additions & 20 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
name: Main

on:
- push
- pull_request_target
- pull_request

jobs:
ci:
name: CI
@@ -10,29 +12,13 @@ jobs:
CI: true
steps:
- uses: actions/checkout@master
- uses: actions/setup-node@v2
- uses: actions/setup-node@v3
with:
node-version: 14.x
node-version: 18.x
cache: yarn
- name: Lint and test
run: |
yarn install --frozen-lockfile
yarn prepublishOnly
yarn lint
yarn prettier --plugin . --check '**/*'
yarn prettier --check '**/*'
yarn test
automerge:
name: AutoMerge
needs: ci
runs-on: ubuntu-latest
if: github.event_name == 'pull_request_target' && github.actor == 'dependabot[bot]'
steps:
- uses: actions/github-script@v3
with:
script: |
github.pulls.merge({
owner: context.payload.repository.owner.login,
repo: context.payload.repository.name,
pull_number: context.payload.pull_request.number
})
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
/.eslintcache
/coverage/
/src/languages.js
/dist/
/node_modules/
/test.xml
1 change: 0 additions & 1 deletion .prettierignore
Original file line number Diff line number Diff line change
@@ -6,6 +6,5 @@
/yarn.lock
/LICENSE

/src/types.ts
/test/fixture.xml
/test/__snapshots__/*
15 changes: 14 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -6,6 +6,18 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) a

## [Unreleased]

## [3.0.0-alpha.0] - 2023-06-02

### Added

- The `xmlWhitespaceSensitivity: "preserve"` option has been added. See the README.

### Changed

- Fixed the behavior of `bracketSameLine` when the attributes on the parent element broke into multiple lines.
- **BREAKING** Require prettier v3.
- **BREAKING** Migrate to ESM modules.

## [2.2.0] - 2022-05-12

### Added
@@ -191,7 +203,8 @@ and it will maintain your formatting.

- Initial release 🎉

[unreleased]: https://github.com/prettier/plugin-xml/compare/v2.2.0...HEAD
[unreleased]: https://github.com/prettier/plugin-xml/compare/v3.0.0-alpha.0...HEAD
[3.0.0-alpha.0]: https://github.com/prettier/plugin-xml/compare/v2.2.0...v3.0.0-alpha.0
[2.2.0]: https://github.com/prettier/plugin-xml/compare/v2.1.0...v2.2.0
[2.1.0]: https://github.com/prettier/plugin-xml/compare/v2.0.1...v2.1.0
[2.0.1]: https://github.com/prettier/plugin-xml/compare/v2.0.0...v2.0.1
76 changes: 76 additions & 0 deletions CODE_OF_CONDUCT.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
# Contributor Covenant Code of Conduct

## Our Pledge

In the interest of fostering an open and welcoming environment, we as
contributors and maintainers pledge to making participation in our project and
our community a harassment-free experience for everyone, regardless of age, body
size, disability, ethnicity, sex characteristics, gender identity and expression,
level of experience, education, socio-economic status, nationality, personal
appearance, race, religion, or sexual identity and orientation.

## Our Standards

Examples of behavior that contributes to creating a positive environment
include:

- Using welcoming and inclusive language
- Being respectful of differing viewpoints and experiences
- Gracefully accepting constructive criticism
- Focusing on what is best for the community
- Showing empathy towards other community members

Examples of unacceptable behavior by participants include:

- The use of sexualized language or imagery and unwelcome sexual attention or
advances
- Trolling, insulting/derogatory comments, and personal or political attacks
- Public or private harassment
- Publishing others' private information, such as a physical or electronic
address, without explicit permission
- Other conduct which could reasonably be considered inappropriate in a
professional setting

## Our Responsibilities

Project maintainers are responsible for clarifying the standards of acceptable
behavior and are expected to take appropriate and fair corrective action in
response to any instances of unacceptable behavior.

Project maintainers have the right and responsibility to remove, edit, or
reject comments, commits, code, wiki edits, issues, and other contributions
that are not aligned to this Code of Conduct, or to ban temporarily or
permanently any contributor for other behaviors that they deem inappropriate,
threatening, offensive, or harmful.

## Scope

This Code of Conduct applies both within project spaces and in public spaces
when an individual is representing the project or its community. Examples of
representing a project or community include using an official project e-mail
address, posting via an official social media account, or acting as an appointed
representative at an online or offline event. Representation of a project may be
further defined and clarified by project maintainers.

## Enforcement

Instances of abusive, harassing, or otherwise unacceptable behavior may be
reported by contacting the project team at prettier-contact@googlegroups.com. All
complaints will be reviewed and investigated and will result in a response that
is deemed necessary and appropriate to the circumstances. The project team is
obligated to maintain confidentiality with regard to the reporter of an incident.
Further details of specific enforcement policies may be posted separately.

Project maintainers who do not follow or enforce the Code of Conduct in good
faith may face temporary or permanent repercussions as determined by other
members of the project's leadership.

## Attribution

This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
available at https://www.contributor-covenant.org/version/1/4/code-of-conduct.html

[homepage]: https://www.contributor-covenant.org

For answers to common questions about this code of conduct, see
https://www.contributor-covenant.org/faq
22 changes: 12 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
@@ -5,7 +5,7 @@
<img alt="Gitter" src="https://img.shields.io/gitter/room/jlongster/prettier.svg?style=flat-square">
</a>
<a href="https://github.com/prettier/plugin-xml/actions">
<img alt="GitHub Actions" src="https://img.shields.io/github/workflow/status/prettier/plugin-xml/Main?style=flat-square">
<img alt="GitHub Actions" src="https://img.shields.io/github/actions/workflow/status/prettier/plugin-xml/main.yml?branch=main&style=flat-square">
</a>
<a href="https://www.npmjs.com/package/@prettier/plugin-xml">
<img alt="NPM Version" src="https://img.shields.io/npm/v/@prettier/plugin-xml.svg?style=flat-square">
@@ -44,16 +44,16 @@ The `prettier` executable is now installed and ready for use:

## Configuration

Below are the options (from [`src/plugin.ts`](src/plugin.ts)) that `@prettier/plugin-xml` currently supports:
Below are the options (from [`src/plugin.js`](src/plugin.js)) that `@prettier/plugin-xml` currently supports:

| API Option | CLI Option | Default | Description |
| -------------------------- | ------------------------------ | :--------: | ------------------------------------------------------------------------------------------------------------- |
| `bracketSameLine` | `--bracket-same-line` | `true` | Same as in Prettier ([see prettier docs](https://prettier.io/docs/en/options.html#bracket-same-line)) |
| `printWidth` | `--print-width` | `80` | Same as in Prettier ([see prettier docs](https://prettier.io/docs/en/options.html#print-width)). |
| `singleAttributePerLine` | `--single-attribute-per-line` | `false` | Same as in Prettier ([see prettier docs](https://prettier.io/docs/en/options.html#single-attribute-per-line)) |
| `tabWidth` | `--tab-width` | `2` | Same as in Prettier ([see prettier docs](https://prettier.io/docs/en/options.html#tab-width)). |
| `xmlSelfClosingSpace` | `--xml-self-closing-space` | `true` | Adds a space before self-closing tags. |
| `xmlWhitespaceSensitivity` | `--xml-whitespace-sensitivity` | `"strict"` | Options are `"strict"` and `"ignore"`. You may want `"ignore"`, [see below](#whitespace). |
| API Option | CLI Option | Default | Description |
| -------------------------- | ------------------------------ | :--------: | ------------------------------------------------------------------------------------------------------------------------ |
| `bracketSameLine` | `--bracket-same-line` | `true` | Same as in Prettier ([see prettier docs](https://prettier.io/docs/en/options.html#bracket-same-line)) |
| `printWidth` | `--print-width` | `80` | Same as in Prettier ([see prettier docs](https://prettier.io/docs/en/options.html#print-width)). |
| `singleAttributePerLine` | `--single-attribute-per-line` | `false` | Same as in Prettier ([see prettier docs](https://prettier.io/docs/en/options.html#single-attribute-per-line)) |
| `tabWidth` | `--tab-width` | `2` | Same as in Prettier ([see prettier docs](https://prettier.io/docs/en/options.html#tab-width)). |
| `xmlSelfClosingSpace` | `--xml-self-closing-space` | `true` | Adds a space before self-closing tags. |
| `xmlWhitespaceSensitivity` | `--xml-whitespace-sensitivity` | `"strict"` | Options are `"strict"`, `"preserve"`, and `"ignore"`. You may want `"ignore"` or `"preserve"`, [see below](#whitespace). |

Any of these can be added to your existing [prettier configuration
file](https://prettier.io/docs/en/configuration.html). For example:
@@ -76,6 +76,8 @@ In XML, by default, all whitespace inside elements has semantic meaning. For pre

If you're sure that the XML files that you're formatting do not require whitespace sensitivity, you can use the `"ignore"` option, as this will produce a standardized amount of whitespace. This will fix any indentation issues, and collapse excess blank lines (max of 1 blank line). For most folks most of the time, this is probably the option that you want.

You can also use the `"preserve"` option, if you want to preserve the whitespace of text nodes within XML elements and attributes. See [#478](https://github.com/prettier/plugin-xml/issues/478) for more detail.

### Ignore ranges

You can use two special comments to get prettier to ignore formatting a specific piece of the document, as in the following example:
43 changes: 43 additions & 0 deletions bin/languages.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
#!/usr/bin/env node

import { writeFileSync } from "node:fs";
import linguistLanguages from "linguist-languages";
import { format } from "prettier";
import packageJSON from "../package.json" assert { type: "json" };

function getSupportLanguages() {
const supportLanguages = [];

for (const language of Object.values(linguistLanguages)) {
if (language.aceMode === "xml") {
const { type, color, aceMode, languageId, ...config } = language;

// Before we used linguist to get the languages, we had a
// manually-maintained list. These two had been added manually. So in the
// interest of not breaking anything, we'll add them back in here.
if (language.name === "XML") {
language.extensions?.push(".inx", ".runsettings");
language.extensions?.sort();
}

supportLanguages.push({
...config,
since: "0.1.0",
parsers: ["xml"],
linguistLanguageId: languageId,
vscodeLanguageIds: ["xml"]
});
}
}

return supportLanguages;
}

const languages = JSON.stringify(getSupportLanguages());
const { plugins, ...prettierConfig } = packageJSON.prettier;

const formatted = await format(`export default ${languages};`, {
parser: "babel",
...prettierConfig
});
writeFileSync("src/languages.js", formatted);
19 changes: 19 additions & 0 deletions bin/print.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
#!/usr/bin/env node

import fs from "fs";
import { format } from "prettier";

import plugin from "../src/plugin.js";

const code = fs.existsSync(process.argv[2])
? fs.readFileSync(process.argv[2], "utf-8")
: process.argv.slice(2).join(" ").replace(/\\n/g, "\n");

const options = {
parser: "xml",
plugins: [plugin],
xmlWhitespaceSensitivity: "ignore",
embeddedLanguageFormatting: "auto"
};

format(code, options).then((formatted) => console.log(formatted));
18 changes: 0 additions & 18 deletions bin/print.ts

This file was deleted.

Loading