Skip to content

Commit

Permalink
Update URLs for Wrangler v1/v2 GitHub repos (cloudflare#2681)
Browse files Browse the repository at this point in the history
* Update Wrangler2 repo links

* Update Wrangler1 repo links

* Prerelease registry
  • Loading branch information
penalosa authored Feb 13, 2023
1 parent d1a7668 commit 5fbcd4e
Show file tree
Hide file tree
Showing 43 changed files with 1,073 additions and 1,075 deletions.
2 changes: 1 addition & 1 deletion .changeset/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"$schema": "https://unpkg.com/@changesets/[email protected]/schema.json",
"changelog": [
"@changesets/changelog-github",
{ "repo": "cloudflare/wrangler2" }
{ "repo": "cloudflare/workers-sdk" }
],
"commit": false,
"linked": [],
Expand Down
12 changes: 6 additions & 6 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ Wrangler is built and run on the Node.js JavaScript runtime.
Any contributions you make will be via [Pull Requests](https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/proposing-changes-to-your-work-with-pull-requests/about-pull-requests) on [GitHub](https://github.com/) developed in a local git repository and pushed to your own fork of the repository.

- Ensure you have [created an account](https://docs.github.com/en/get-started/onboarding/getting-started-with-your-github-account) on GitHub.
- [Create your own fork](https://docs.github.com/en/get-started/quickstart/fork-a-repo) of [this repository](https://github.com/cloudflare/wrangler2).
- [Create your own fork](https://docs.github.com/en/get-started/quickstart/fork-a-repo) of [this repository](https://github.com/cloudflare/workers-sdk).
- Clone your fork to your local machine
```sh
> git clone https://github.com/<your-github-username>/wrangler2
Expand All @@ -35,18 +35,18 @@ Any contributions you make will be via [Pull Requests](https://docs.github.com/e
```
- Add `cloudflare/wrangler2` as the `upstream` remote repository.
```sh
> git remote add upstream https://github.com/cloudflare/wrangler2
> git remote add upstream https://github.com/cloudflare/workers-sdk
> git remote -v
origin https://github.com/<your-github-username>/wrangler2 (fetch)
origin https://github.com/<your-github-username>/wrangler2 (push)
upstream https://github.com/cloudflare/wrangler2 (fetch)
upstream https://github.com/cloudflare/wrangler2 (push)
upstream https://github.com/cloudflare/workers-sdk (fetch)
upstream https://github.com/cloudflare/workers-sdk (push)
```
- You should regularly pull from the `main` branch of the `upstream` repository to keep up to date with the latest changes to the project.
```sh
> git switch main
> git pull upstream main
From https://github.com/cloudflare/wrangler2
From https://github.com/cloudflare/workers-sdk
* branch main -> FETCH_HEAD
Already up to date.
```
Expand All @@ -63,7 +63,7 @@ When working on Wrangler, you'll need to satisfy [`workerd`](https://github.com/

The Node.js dependencies of the project are managed by the [`npm`](https://www.npmjs.com/) tool.

This repository is setup as a [mono-repo](https://docs.npmjs.com/cli/v7/using-npm/workspaces) of workspaces. The workspaces are stored in the [`packages`](https://github.com/cloudflare/wrangler2/tree/main/packages) directory.
This repository is setup as a [mono-repo](https://docs.npmjs.com/cli/v7/using-npm/workspaces) of workspaces. The workspaces are stored in the [`packages`](https://github.com/cloudflare/workers-sdk/tree/main/packages) directory.

While each workspace has its own dependencies, you install the dependencies using `npm` at the root of the project.

Expand Down
4 changes: 2 additions & 2 deletions ISSUE_TRIAGE.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ If an issue or PR obviously relates to a release regression, we must assign an a

Anyone can triage issues as they arrive in the repository.

New untriaged issues can be found by filtering the issues list for those [not in a project](https://github.com/cloudflare/wrangler2/issues?q=is%3Aopen+is%3Aissue+-project%3Acloudflare%2F1+-project%3Acloudflare%2F2+).
New untriaged issues can be found by filtering the issues list for those [not in a project](https://github.com/cloudflare/workers-sdk/issues?q=is%3Aopen+is%3Aissue+-project%3Acloudflare%2F1+-project%3Acloudflare%2F2+).

Follow these steps to triage an issue.

Expand All @@ -29,7 +29,7 @@ This typically includes the version of Wrangler being used and steps to reproduc
- If the issue does not provide clear steps to reproduce the problem then add the `needs reproduction` label.

These labels can be revisited if the author can provide further clarification.
You can see a list of issues that need revisiting by filtering on ["needs reproduction" and "needs clarification"](https://github.com/cloudflare/wrangler2/issues?q=is%3Aopen+is%3Aissue+project%3Acloudflare%2F1+label%3A%22needs+clarification%22).
You can see a list of issues that need revisiting by filtering on ["needs reproduction" and "needs clarification"](https://github.com/cloudflare/workers-sdk/issues?q=is%3Aopen+is%3Aissue+project%3Acloudflare%2F1+label%3A%22needs+clarification%22).

If the issue does have enough information, move on to step 2.

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
## ⛅️ wrangler

> This package is for wrangler v2.x, released first in May 2022. If you're looking for v1.x of the `@cloudflare/wrangler` package, visit https://www.npmjs.com/package/@cloudflare/wrangler / https://github.com/cloudflare/wrangler. v1 vs v2 comparison is at [our docs site](https://developers.cloudflare.com/workers/wrangler/compare-v1-v2/)
> This package is for wrangler v2.x, released first in May 2022. If you're looking for v1.x of the `@cloudflare/wrangler` package, visit https://www.npmjs.com/package/@cloudflare/wrangler / https://github.com/cloudflare/wrangler-legacy. v1 vs v2 comparison is at [our docs site](https://developers.cloudflare.com/workers/wrangler/compare-v1-v2/)
`wrangler` is a command line tool for building [Cloudflare Workers](https://workers.cloudflare.com/).

Expand Down
2 changes: 1 addition & 1 deletion fixtures/local-mode-tests/src/nodeBuiltinPackage.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Because we have the `buffer` npm package installed, this shouldn't fail,
// as esbuild can resolve that instead:
// https://github.com/cloudflare/wrangler2/issues/2038
// https://github.com/cloudflare/workers-sdk/issues/2038
import { Buffer } from "buffer";

export default {
Expand Down
2 changes: 1 addition & 1 deletion fixtures/local-mode-tests/tests/unstableDev.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import type { UnstableDevWorker } from "wrangler";

// TODO: add test for `experimentalLocal: true` once issue with dynamic
// `import()` and `npx-import` resolved:
// https://github.com/cloudflare/wrangler2/pull/1940#issuecomment-1261166695
// https://github.com/cloudflare/workers-sdk/pull/1940#issuecomment-1261166695
describe("worker in local mode", () => {
let worker: UnstableDevWorker;
let resolveReadyPromise: (value: unknown) => void;
Expand Down
2 changes: 1 addition & 1 deletion fixtures/pages-functions-with-routes-app/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

### Patch Changes

- [#2065](https://github.com/cloudflare/wrangler2/pull/2065) [`14c44588`](https://github.com/cloudflare/wrangler2/commit/14c44588c9d22e9c9f2ad2740df57809d0cbcfbc) Thanks [@CarmenPopoviciu](https://github.com/CarmenPopoviciu)! - fix(pages): `wrangler pages dev` matches routing rules in `_routes.json` too loosely
- [#2065](https://github.com/cloudflare/workers-sdk/pull/2065) [`14c44588`](https://github.com/cloudflare/workers-sdk/commit/14c44588c9d22e9c9f2ad2740df57809d0cbcfbc) Thanks [@CarmenPopoviciu](https://github.com/CarmenPopoviciu)! - fix(pages): `wrangler pages dev` matches routing rules in `_routes.json` too loosely

Currently, the logic by which we transform routing rules in `_routes.json` to
regular expressions, so we can perform `pathname` matching & routing when we
Expand Down
2 changes: 1 addition & 1 deletion fixtures/pages-workerjs-and-functions-app/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

### Patch Changes

- [#1950](https://github.com/cloudflare/wrangler2/pull/1950) [`daf73fbe`](https://github.com/cloudflare/wrangler2/commit/daf73fbe03b55631383cdc86a05eac12d2775875) Thanks [@CarmenPopoviciu](https://github.com/CarmenPopoviciu)! - `wrangler pages dev` should prioritize `_worker.js`
- [#1950](https://github.com/cloudflare/workers-sdk/pull/1950) [`daf73fbe`](https://github.com/cloudflare/workers-sdk/commit/daf73fbe03b55631383cdc86a05eac12d2775875) Thanks [@CarmenPopoviciu](https://github.com/CarmenPopoviciu)! - `wrangler pages dev` should prioritize `_worker.js`

When using a `_worker.js` file, the entire `/functions` directory should be ignored – this includes its routing and middleware characteristics. Currently `wrangler pages dev` does the reverse, by prioritizing
`/functions` over `_worker.js`. These changes fix the current behaviour.
2 changes: 1 addition & 1 deletion fixtures/pages-workerjs-with-routes-app/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

### Patch Changes

- [#2065](https://github.com/cloudflare/wrangler2/pull/2065) [`14c44588`](https://github.com/cloudflare/wrangler2/commit/14c44588c9d22e9c9f2ad2740df57809d0cbcfbc) Thanks [@CarmenPopoviciu](https://github.com/CarmenPopoviciu)! - fix(pages): `wrangler pages dev` matches routing rules in `_routes.json` too loosely
- [#2065](https://github.com/cloudflare/workers-sdk/pull/2065) [`14c44588`](https://github.com/cloudflare/workers-sdk/commit/14c44588c9d22e9c9f2ad2740df57809d0cbcfbc) Thanks [@CarmenPopoviciu](https://github.com/CarmenPopoviciu)! - fix(pages): `wrangler pages dev` matches routing rules in `_routes.json` too loosely

Currently, the logic by which we transform routing rules in `_routes.json` to
regular expressions, so we can perform `pathname` matching & routing when we
Expand Down
2 changes: 1 addition & 1 deletion node-types.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// https://github.com/cloudflare/wrangler2/pull/2496#discussion_r1062516883
// https://github.com/cloudflare/workers-sdk/pull/2496#discussion_r1062516883

import {
Event as WorkerEvent,
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
"version": "0.0.0",
"private": true,
"description": "Monorepo for wrangler and associated packages",
"homepage": "https://github.com/cloudflare/wrangler2#readme",
"homepage": "https://github.com/cloudflare/workers-sdk#readme",
"bugs": {
"url": "https://github.com/cloudflare/wrangler2/issues"
"url": "https://github.com/cloudflare/workers-sdk/issues"
},
"license": "MIT OR Apache-2.0",
"author": "[email protected]",
Expand Down
14 changes: 7 additions & 7 deletions packages/pages-shared/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,41 +4,41 @@

### Patch Changes

- [#2502](https://github.com/cloudflare/wrangler2/pull/2502) [`6b7ebc8d`](https://github.com/cloudflare/wrangler2/commit/6b7ebc8dd0dee5521bce49a6dfff997d308e900e) Thanks [@mrbbot](https://github.com/mrbbot)! - Upgrade `miniflare` to [`2.11.0`](https://github.com/cloudflare/miniflare/releases/tag/v2.11.0)
- [#2502](https://github.com/cloudflare/workers-sdk/pull/2502) [`6b7ebc8d`](https://github.com/cloudflare/workers-sdk/commit/6b7ebc8dd0dee5521bce49a6dfff997d308e900e) Thanks [@mrbbot](https://github.com/mrbbot)! - Upgrade `miniflare` to [`2.11.0`](https://github.com/cloudflare/miniflare/releases/tag/v2.11.0)

## 0.0.12

### Patch Changes

- [#2339](https://github.com/cloudflare/wrangler2/pull/2339) [`f6821189`](https://github.com/cloudflare/wrangler2/commit/f6821189110e5b6301fe77509a6bb9a8652bbc1b) Thanks [@GregBrimble](https://github.com/GregBrimble)! - fix: `wrangler dev --local` now correctly lazy-imports `@miniflare/tre`
- [#2339](https://github.com/cloudflare/workers-sdk/pull/2339) [`f6821189`](https://github.com/cloudflare/workers-sdk/commit/f6821189110e5b6301fe77509a6bb9a8652bbc1b) Thanks [@GregBrimble](https://github.com/GregBrimble)! - fix: `wrangler dev --local` now correctly lazy-imports `@miniflare/tre`

Previously, we introduced a bug where we were incorrectly requiring `@miniflare/tre`, even when not using the `workerd`/`--experimental-local` mode.

## 0.0.11

### Patch Changes

- [#2303](https://github.com/cloudflare/wrangler2/pull/2303) [`1a1f1dc7`](https://github.com/cloudflare/wrangler2/commit/1a1f1dc7fc8cad06030d3feac1258e2fb3118d8c) Thanks [@jrf0110](https://github.com/jrf0110)! - fix: Pages asset-server duplicating the hash component
- [#2303](https://github.com/cloudflare/workers-sdk/pull/2303) [`1a1f1dc7`](https://github.com/cloudflare/workers-sdk/commit/1a1f1dc7fc8cad06030d3feac1258e2fb3118d8c) Thanks [@jrf0110](https://github.com/jrf0110)! - fix: Pages asset-server duplicating the hash component
fix: Pages metadata missing line numbers. This could have resulted in redirects precedence ordering not being respected.

* [#2268](https://github.com/cloudflare/wrangler2/pull/2268) [`3be1c2cf`](https://github.com/cloudflare/wrangler2/commit/3be1c2cf99fdaef1e612937ccc487a5196c5df67) Thanks [@GregBrimble](https://github.com/GregBrimble)! - feat: Add support for `--experimental-local` to `wrangler pages dev` which will use the `workerd` runtime.
* [#2268](https://github.com/cloudflare/workers-sdk/pull/2268) [`3be1c2cf`](https://github.com/cloudflare/workers-sdk/commit/3be1c2cf99fdaef1e612937ccc487a5196c5df67) Thanks [@GregBrimble](https://github.com/GregBrimble)! - feat: Add support for `--experimental-local` to `wrangler pages dev` which will use the `workerd` runtime.

Add `@miniflare/tre` environment polyfill to `@cloudflare/pages-shared`.

## 0.0.10

### Patch Changes

- [#2146](https://github.com/cloudflare/wrangler2/pull/2146) [`c987fceb`](https://github.com/cloudflare/wrangler2/commit/c987fcebfe8ebd61fd762371a108f28eaae4c71e) Thanks [@GregBrimble](https://github.com/GregBrimble)! - feat: Add a `failOpen` prop to the deployment metadata.
- [#2146](https://github.com/cloudflare/workers-sdk/pull/2146) [`c987fceb`](https://github.com/cloudflare/workers-sdk/commit/c987fcebfe8ebd61fd762371a108f28eaae4c71e) Thanks [@GregBrimble](https://github.com/GregBrimble)! - feat: Add a `failOpen` prop to the deployment metadata.

## 0.0.9

### Patch Changes

- [#2004](https://github.com/cloudflare/wrangler2/pull/2004) [`f2d5728f`](https://github.com/cloudflare/wrangler2/commit/f2d5728fc10f1ef8298b777ffb586ff315f00a35) Thanks [@GregBrimble](https://github.com/GregBrimble)! - feat: Slightly relax the selectors for generating `Link` headers from `<link>` elements in Pages Early Hints feature
- [#2004](https://github.com/cloudflare/workers-sdk/pull/2004) [`f2d5728f`](https://github.com/cloudflare/workers-sdk/commit/f2d5728fc10f1ef8298b777ffb586ff315f00a35) Thanks [@GregBrimble](https://github.com/GregBrimble)! - feat: Slightly relax the selectors for generating `Link` headers from `<link>` elements in Pages Early Hints feature

Previously, we'd only generate `Link` headers if the `rel="preload"` or `rel="preconnect"` matched exactly. Now, this change will generate `Link` headers if `preload` or `preconnect` appears as a whitespace-separated value in the `rel` attribute. For example, `rel="stylesheet preconnect"` is now valid.

For more info, check out [this GitHub issue on the Cloudflare Developer Docs repo](https://github.com/cloudflare/cloudflare-docs/pull/6183#issuecomment-1272007522).

* [#2003](https://github.com/cloudflare/wrangler2/pull/2003) [`3ed06b40`](https://github.com/cloudflare/wrangler2/commit/3ed06b4096d3ea9ed601ae05d77442e5b0217678) Thanks [@GregBrimble](https://github.com/GregBrimble)! - chore: Bump [email protected]
* [#2003](https://github.com/cloudflare/workers-sdk/pull/2003) [`3ed06b40`](https://github.com/cloudflare/workers-sdk/commit/3ed06b4096d3ea9ed601ae05d77442e5b0217678) Thanks [@GregBrimble](https://github.com/GregBrimble)! - chore: Bump [email protected]
2 changes: 1 addition & 1 deletion packages/pages-shared/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"version": "0.0.13",
"repository": {
"type": "git",
"url": "https://github.com/cloudflare/wrangler2.git",
"url": "https://github.com/cloudflare/workers-sdk.git",
"directory": "packages/pages-shared"
},
"files": [
Expand Down
4 changes: 2 additions & 2 deletions packages/prerelease-registry/functions/routes/prs/[[path]].ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ export const onRequestGet: PagesFunction<

try {
const pullRequestsResponse = await gitHubFetch(
`https://api.github.com/repos/cloudflare/wrangler2/pulls/${pullRequestID}`,
`https://api.github.com/repos/cloudflare/workers-sdk/pulls/${pullRequestID}`,
{
headers: {
Accept: "application/vnd.github.v3+json",
Expand All @@ -52,7 +52,7 @@ export const onRequestGet: PagesFunction<
} = (await pullRequestsResponse.json()) as PullRequest;

const workflowRunsResponse = await gitHubFetch(
`https://api.github.com/repos/cloudflare/wrangler2/actions/runs?branch=${branch}&per_page=100&event=pull_request`,
`https://api.github.com/repos/cloudflare/workers-sdk/actions/runs?branch=${branch}&per_page=100&event=pull_request`,
{
headers: {
Accept: "application/vnd.github.v3+json",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export const getArtifactForWorkflowRun = async ({

try {
const artifactsResponse = await gitHubFetch(
`https://api.github.com/repos/cloudflare/wrangler2/actions/runs/${runID}/artifacts`,
`https://api.github.com/repos/cloudflare/workers-sdk/actions/runs/${runID}/artifacts`,
{
headers: {
Accept: "application/vnd.github.v3+json",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export const generateGitHubFetch = ({
);
gitHubRequest.headers.set(
"User-Agent",
"@cloudflare/wrangler2/packages/prerelease-registry"
"@cloudflare/workers-sdk/packages/prerelease-registry"
);

return fetch(gitHubRequest);
Expand Down
4 changes: 2 additions & 2 deletions packages/wrangler-devtools/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
"version": "0.0.0",
"private": "true",
"description": "Chrome Devtools hosted for easy use with Wrangler",
"homepage": "https://github.com/cloudflare/wrangler2#readme",
"homepage": "https://github.com/cloudflare/workers-sdk#readme",
"bugs": {
"url": "https://github.com/cloudflare/wrangler2/issues"
"url": "https://github.com/cloudflare/workers-sdk/issues"
},
"license": "BSD-3-Clause",
"author": "[email protected]",
Expand Down
Loading

0 comments on commit 5fbcd4e

Please sign in to comment.