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

Version Packages #1860

Merged
merged 1 commit into from
Sep 20, 2022
Merged

Version Packages #1860

merged 1 commit into from
Sep 20, 2022

Conversation

github-actions[bot]
Copy link
Contributor

@github-actions github-actions bot commented Sep 15, 2022

This PR was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to main, this PR will be updated.

Releases

wrangler@2.1.5

Patch Changes

  • #1819 d8a18070 Thanks @CarmenPopoviciu! - Adds support for custom _routes.json when running wrangler pages dev

  • #1815 d8fe95d2 Thanks @cameron-robey! - feat: testing scheduled events with wrangler dev remote mode

    Using the new middleware (feat: new internal middleware #1735), we implement a way of testing scheduled workers from a fetch using wrangler dev in remote mode, by passing a new command line flag --test-scheduled. This exposes a route /__scheduled which will trigger the scheduled event.

    $ npx wrangler dev index.js --test-scheduled
    
    $ curl http://localhost:8787/__scheduled

    Closes Support cron triggers using preview and dev #570

  • #1801 07fc90d6 Thanks @rozenmd! - feat: multi-worker testing

    This change introduces the ability to test multi-worker setups via the wrangler API's unstable_dev function.

    Usage:

    import { unstable_dev } from "wrangler";
    
    /**
     * Note: if you shut down the first worker you spun up,
     * the parent worker won't know the child worker exists
     * and your tests will fail
     */
    describe("multi-worker testing", () => {
    	let childWorker;
    	let parentWorker;
    
    	beforeAll(async () => {
    		childWorker = await unstable_dev(
    			"src/child-worker.js",
    			{ config: "src/child-wrangler.toml" },
    			{ disableExperimentalWarning: true }
    		);
    		parentWorker = await unstable_dev(
    			"src/parent-worker.js",
    			{ config: "src/parent-wrangler.toml" },
    			{ disableExperimentalWarning: true }
    		);
    	});
    
    	afterAll(async () => {
    		await childWorker.stop();
    		await parentWorker.stop();
    	});
    
    	it("childWorker should return Hello World itself", async () => {
    		const resp = await childWorker.fetch();
    		if (resp) {
    			const text = await resp.text();
    			expect(text).toMatchInlineSnapshot(`"Hello World!"`);
    		}
    	});
    
    	it("parentWorker should return Hello World by invoking the child worker", async () => {
    		const resp = await parentWorker.fetch();
    		if (resp) {
    			const parsedResp = await resp.text();
    			expect(parsedResp).toEqual("Parent worker sees: Hello World!");
    		}
    	});
    });
  • #1865 adfc52d6 Thanks @JacobMGEvans! - polish: loglevel flag
    Added a '--log-level' flag that allows the user to specify between 'debug', 'info', 'log', 'warning', 'error', 'none'
    Currently 'none' will turn off all outputs in Miniflare (local mode), however, Wrangler will still output Errors.

    resolves Non verbose proxy #185

  • #1861 3d51d553 Thanks @GregBrimble! - fix: Add 'charset' to 'Content-Type' on 'wrangler pages dev' responses

  • #1867 5a6ccc58 Thanks @cameron-robey! - fix: handle logging of empty map/set/weak-map/weak-set

  • #1882 ba0aed63 Thanks @rozenmd! - chore: refactor remote.tsx to only destructure when necessary

@github-actions github-actions bot force-pushed the changeset-release/main branch 5 times, most recently from 50e9545 to 487799b Compare September 16, 2022 17:04
@github-actions github-actions bot force-pushed the changeset-release/main branch from 487799b to 03295c2 Compare September 19, 2022 15:13
@lrapoport-cf lrapoport-cf merged commit a1aac91 into main Sep 20, 2022
@lrapoport-cf lrapoport-cf deleted the changeset-release/main branch September 20, 2022 13:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support cron triggers using preview and dev Non verbose proxy
1 participant