Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[pull] latest from npm:latest #54

Open
wants to merge 3,676 commits into
base: latest
Choose a base branch
from
Open

[pull] latest from npm:latest #54

wants to merge 3,676 commits into from

Conversation

pull[bot]
Copy link

@pull pull bot commented Sep 19, 2020

See Commits and Changes for more details.


Created by pull[bot] (v2.0.0-alpha.1)

Can you help keep this open source service alive? 💖 Please sponsor : )

@pull pull bot added ⤵️ pull merge-conflict Resolve conflicts manually labels Sep 19, 2020
@pull-assistant
Copy link

pull-assistant bot commented Sep 19, 2020

Score: 0.99

Best reviewed: commit by commit


Optimal code review plan (5 warnings)

     chore: avoid publish vim session file

     fix: relativize file links when inflating shrinkwrap

     chore(docs): Fixed example typo & code style in npm-scripts.md

     docs: fix minor typos in CONTRIBUTING.md

     npm init help wrong command

npm-registry-fetch@4.0.4

package-lock.json 60% changes removed in npm-registry-fetch@4...

     graceful-fs@4.2.4

     mkdirp@0.5.5

     nopt@4.0.3

     docs: changelog for 6.14.5

     chore: reenable windows ci

     chore: remove pyc files from tarball

     docs: updated node-gyp links

     chore: remove slack notification

     update AUTHORS

     6.14.5

chore(docs): fixed links to cli commands

...ntent/cli-commands/npm-link.md 50% changes removed in Update npm-link.md

     Update npm-link.md

     docs: Add note about dropped * filenames

     spdx-license-ids@3.0.5

     docs: Fix typo

     fix: wrong npm doctor command result

     test: add test for npm doctor that ping registry returns error

     style: fix lint error with no trailing comma

     chore: remove auth info from logs

npm-registry-fetch@4.0.5

package-lock.json 50% changes removed in npm-registry-fetch@4...

     docs: changelog for 6.14.6

     update AUTHORS

     6.14.6

     libnpx@10.2.4

     deps: update mkdirp on tacks

     deps: uninstall npm-registry-couchapp

     deps: fix outdated dev deps

     fix: npm explore spawn shell correctly

     fix: git tag handling regression on shrinkwrap

     Fix package id in shrinkwrap lifecycle step output

     fix: gracefully handle error during npm install

     fix: npm ls --parseable --long output

     bin-links@1.1.8

     gentle-fs@2.3.1

     libcipm@4.0.8

     npm-audit-report@1.3.3

     npm-lifecycle@3.1.5

     docs: changelog for 6.14.7

     update AUTHORS

     6.14.7

chore: add/update github issue templates

...github/ISSUE_TEMPLATE/bug-6.md 59% changes removed in chore: fix up issue ...

...github/ISSUE_TEMPLATE/bug-7.md 58% changes removed in chore: fix up issue ...

...thub/ISSUE_TEMPLATE/config.yml 47% changes removed in chore: adding labels...

chore: fix issue templates to allow for bug filing again

...thub/ISSUE_TEMPLATE/config.yml 42% changes removed in chore: fix up issue ...

     chore: adding labels to new bugs

     chore: rename bug template for v7

     Update bug_7.md

     chore: fix up issue templates

     fix: typo in v6 issue template

     update-notifier@2.5.0

     npm-registry-fetch@4.0.7

     meant@1.0.2

     test: increase whoami with bearer auth timeout

     Docs: add missing metadata in semver page

     fix: npm install --dev deprecation message

     Node-gyp supports both Python and legacy Python

     fix: remove unused broken require

     chore: Do not send user secret in the referer header

     test: fix missing JSON.stringify

     docs: changelog for 6.14.8

     update AUTHORS

     6.14.8

     Fix spelling of npm in bug templates (#1701)

Powered by Pull Assistant. Last update b411f76 ... bd2721d. Read the comment docs.

milaninfy and others added 8 commits June 14, 2024 09:54
- closes #7614

## Issue

Examples in the
[repository](https://docs.npmjs.com/cli/v10/configuring-npm/package-json#repository)
section of the [npm CI > Configuring npm >
package.json](https://docs.npmjs.com/cli/v10/configuring-npm/package-json)
reference page use the protocol `https`. The examples are:

```json
"url": "https://github.com/npm/cli.git"
```
```json
"url": "https://github.com/facebook/react.git"
```

Executing `npm pkg fix` in a repo with a `url` definition and `protocol`
using `https` normalizes the protocol to `git+https`.

Examples should be aligned with what `npm pkg fix` considers correct and
should also be aligned to the list of valid protocols in the [Git URLs
as
Dependencies](https://docs.npmjs.com/cli/v10/configuring-npm/package-json#git-urls-as-dependencies)
section, which states:

> `<protocol>` is one of `git`, `git+ssh`, `git+http`, `git+https`, or
`git+file`.

## Change

1. `npm/cli.git`
    Change to
    ```json
    "url": "git+https://github.com/npm/cli.git"
    ```
2. `facebook/react.git`
Since the source example of
https://github.com/facebook/react/blob/main/packages/react-dom/package.json
does not use the correct `git+https` protocol, use instead
    ```json
    "url": "git+https://github.com/npm/cli.git",
    "directory": "workspaces/libnpmpublish"
    ```
…7602)

When metadata is committed for the first time when there is no
package-lock, when target node has the same name field value as target
package name and link node also share the same name field, name field is
omitted from lock file, in subsequent times when there is already a lock
file, it reads target node with name field derived from realpath value
of the node and included in lock file. this creates mismatch of lock
file between installs.

This PR adds additional condition to check if name derived from realpath
is the same name as package and adds the name property.

Fixes: #7166
reggi and others added 30 commits January 22, 2025 10:17
#8054 broke the smoke test because were
publishing the current version in a test
Im a big proponent of scripts working the same way in ci as they would
locally. and that we should be able to run anything the ci does locally.
The publish script is used to publish npm and ws packages, but also
within a series of smoke tests. Making the flags clear it's either one
of the two paths was my goal.
This removes the `publish.sh --smoke-publish` like from the current
`smoke-publish-test.sh` (renaming it to `smoke-test.sh`) and runs both
operations as seperete jobs within the `ci.yml` (on pr) and
`ci-release.yml` (on merge) workflow.

Why? To avoid changed files / git dirty issues from one operation to the
next.

With this PR we should have the same checks that merge has, on pr as
well, preventing scenarios where a PR breaks a `smoke test` or `publish
--smoke-publish` test. The only difference between merge / pr is that
merge has more tested node versions, if PRs start to pass but fail in
these version lets add the full matrix.

```sh
npm i npm@latest -g && node scripts/git-dirty.js && node scripts/resetdeps.js && ./scripts/smoke-tests.sh
```

```sh
npm i npm@latest -g && node scripts/git-dirty.js && node scripts/resetdeps.js && node ./scripts/publish.js --pack-destination=${pwd} --smoke-publish=true
```
It is not a valid cli flag, single-hyphen flags should all be single-character.  Eventually `-ws` will need to go away so will at least stop suggesting it now.
Single hyphen cli flags traditionally are single-character only, so they
can be combined. npm already supports combining single-hyphen flags
together, so it eventually needs stop supporting multi-character ones.

Also re-added -ws to undocumented shorthands, it was accidentally
removed from the main config and not re-added to the internal one.

Finally, warnings on a few env configs that npm tosses around were
suppressed for now.
Removes all usage of `.replace(/#/g, '%23')` for compatibility with the new version

This is the code changes from #8112 isloated from the dependency update itself.

Closes:
npm/npm-package-arg#203

Credit: @TrevorBurnham
Following up on #8115. Since `cleanFetchSpec` no longer differs from
`fetchSpec`, it's no longer needed. cc @wraithgar
When doing manifest call for fetching npm manifest it was using latest
every-time, however fetching`npm@*` will still give `latest` if it's
satisfies the engine range otherwise it will give highest matching
version for the current engine range.
Pacote.manifest calls internally uses pick-manifest logic to pick the
appropriate version of the manifest for the engine range.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
⤵️ pull merge-conflict Resolve conflicts manually
Projects
None yet
Development

Successfully merging this pull request may close these issues.