wrangler 0.0.0-bae5ba4 → 0.0.0-bc28bea

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (45) hide show
  1. package/README.md +3 -1
  2. package/miniflare-dist/index.mjs +4828 -21
  3. package/package.json +7 -7
  4. package/pages/functions/buildPlugin.ts +38 -1
  5. package/pages/functions/buildWorker.ts +80 -4
  6. package/src/__tests__/configuration.test.ts +16 -16
  7. package/src/__tests__/dev.test.tsx +152 -21
  8. package/src/__tests__/helpers/mock-console.ts +2 -0
  9. package/src/__tests__/helpers/mock-dialogs.ts +26 -1
  10. package/src/__tests__/helpers/mock-istty.ts +7 -3
  11. package/src/__tests__/helpers/mock-oauth-flow.ts +26 -2
  12. package/src/__tests__/https-options.test.ts +3 -2
  13. package/src/__tests__/index.test.ts +12 -2
  14. package/src/__tests__/init.test.ts +716 -33
  15. package/src/__tests__/jest.setup.ts +0 -4
  16. package/src/__tests__/kv.test.ts +52 -16
  17. package/src/__tests__/pages.test.ts +2 -2
  18. package/src/__tests__/parse.test.ts +4 -0
  19. package/src/__tests__/publish.test.ts +299 -108
  20. package/src/__tests__/r2.test.ts +16 -4
  21. package/src/__tests__/secret.test.ts +33 -24
  22. package/src/__tests__/tail.test.ts +44 -14
  23. package/src/__tests__/user.test.ts +7 -2
  24. package/src/__tests__/whoami.test.tsx +11 -3
  25. package/src/cfetch/internal.ts +0 -2
  26. package/src/cli.ts +1 -9
  27. package/src/config/validation-helpers.ts +3 -1
  28. package/src/config/validation.ts +8 -6
  29. package/src/create-worker-preview.ts +8 -6
  30. package/src/dev/dev-vars.ts +36 -0
  31. package/src/dev/dev.tsx +0 -2
  32. package/src/index.tsx +254 -41
  33. package/src/logger.ts +14 -4
  34. package/src/pages.tsx +82 -71
  35. package/src/parse.ts +3 -1
  36. package/src/proxy.ts +4 -11
  37. package/src/tail/index.ts +1 -1
  38. package/src/tail/printing.ts +9 -5
  39. package/src/user.tsx +23 -5
  40. package/templates/gitignore +171 -0
  41. package/wrangler-dist/cli.js +16174 -49325
  42. package/miniflare-dist/index.mjs.map +0 -7
  43. package/src/__tests__/sentry.test.ts +0 -146
  44. package/src/reporting.ts +0 -147
  45. package/wrangler-dist/cli.js.map +0 -7
package/README.md CHANGED
@@ -1,5 +1,7 @@
1
1
  ## ⛅️ wrangler
2
2
 
3
+ > 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.
4
+
3
5
  `wrangler` is a command line tool for building [Cloudflare Workers](https://workers.cloudflare.com/).
4
6
 
5
7
  ## Quick Start
@@ -22,7 +24,7 @@ npx wrangler init my-worker
22
24
  # try it out
23
25
  cd my-worker && npm run start
24
26
  # and then publish it
25
- npx wrangler publish
27
+ npm run publish
26
28
  ```
27
29
 
28
30
  ## Installation: