fix: change defaults for mangle and headerIds to false#2890
Merged
UziTech merged 1 commit intomarkedjs:masterfrom Aug 6, 2023
Merged
fix: change defaults for mangle and headerIds to false#2890UziTech merged 1 commit intomarkedjs:masterfrom
UziTech merged 1 commit intomarkedjs:masterfrom
Conversation
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
styfle
approved these changes
Jul 30, 2023
Member
Author
|
@calculuschild any issue with merging this? |
calculuschild
approved these changes
Aug 6, 2023
Contributor
calculuschild
left a comment
There was a problem hiding this comment.
I have no problems with this.
github-actions bot
pushed a commit
that referenced
this pull request
Aug 6, 2023
# [7.0.0](v6.0.0...v7.0.0) (2023-08-06) ### Bug Fixes * change defaults for mangle and headerIds to false ([#2890](#2890)) ([63a839b](63a839b)) ### BREAKING CHANGES * change defaults for mangle and headerIds to false
github-merge-queue bot
pushed a commit
to microsoft/qdk
that referenced
this pull request
Oct 27, 2023
Updated all direct npm dependencies to `@latest`. Observed changes: - Prettier: now adds trailing commas to all lists. prettier/prettier#11479 - Katas: `marked` now omits `id` attributes for header tags (confirmed benign) markedjs/marked#2890 - Other trivial differences in JS emit through `esbuild`. I was really hoping this would be a trivial process, but sadly it wasn't. For posterity, here's what the process ended up being: ```js const { execSync } = require("node:child_process"); function run(command) { console.log(`running command ${command}`); return execSync(command); } const deps = JSON.parse(run(`npm ls --package-lock-only --json`)); // Do these in this order first, otherwise @typescript-eslint/eslint-plugin // gets really upset about the peer dependency missing run("npm install @typescript-eslint/parser@latest"); run("npm install @typescript-eslint/eslint-plugin@latest"); // Update all direct deps to @latest for (const depName of Object.keys(deps.dependencies)) { if (!depName.startsWith("qsharp")) { run(`npm install ${depName}@latest`); } } // Update indirect deps in package-lock.json run("npm update"); // This fixes the workspace names in package-lock.json, // which for some reason get erased above run("npm install"); ``` Ran `./build.py` to confirm the repo still built, discovered formatting changes. To reformat with new Prettier defaults: ```bash npm run prettier:fix ``` Since we pulled a lot of JS tooling updates, I ran a quick script to save the built artifacts so I could diff the JS output: ```bash #!/bin/bash set -e # clean repo git clean -fdx rm -rf baseline-compare/ mkdir baseline-compare # build ./build.py --wasm --npm --vscode --no-check --no-test # npm mkdir -p baseline-compare/npm pushd npm npm pack --pack-destination . popd tar -xzf npm/qsharp-lang-0.0.0.tgz -C baseline-compare/npm # vsix npm install -g @vscode/vsce pushd vscode vsce package --pre-release popd unzip vscode/qsharp-lang-vscode-dev-0.0.0.vsix -d baseline-compare/vscode # commit baseline cp package-lock.json baseline-compare/ git add baseline-compare/ git commit -m "Baseline for $(git rev-parse HEAD)" ``` Ran this script first on `main`, then with the updated `package.json` & `package-lock.json`. Used `git` to diff the `baseline-compare` changes. Confirmed they looked harmless.
Logiclayer1111
pushed a commit
to Logiclayer1111/marked
that referenced
this pull request
Apr 20, 2026
# [7.0.0](markedjs/marked@v6.0.0...v7.0.0) (2023-08-06) ### Bug Fixes * change defaults for mangle and headerIds to false ([#2890](markedjs/marked#2890)) ([14a718b](markedjs/marked@14a718b)) ### BREAKING CHANGES * change defaults for mangle and headerIds to false
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Change default for
mangleandheaderIdstofalseThis will prevent console logs by default.
Contributor
Committer
In most cases, this should be a different person than the contributor.