100 Commits
Author SHA1 Message Date
Jeffrey PosnickandGitHub 9ba1caaad4 Remove GitHub usernames 2022-08-02 10:33:45 -04:00
Jeffrey PosnickandGitHub 96dc0c9b33 Typo fix (#3092) 2022-07-26 09:31:53 -07:00
Jeffrey PosnickandGitHub 7926863cfd Tweak TSDocs (#3078) 2022-05-09 11:02:34 -04:00
Jeffrey PosnickandGitHub d95a9b9235 declares RouteHandlerCallbackOptions (#3057) 2022-04-07 10:43:31 -07:00
Jeff Posnick 0bdbfdce0f v6.5.2 2022-03-24 09:30:17 -04:00
Jeffrey PosnickandGitHub 75d4ba71a8 Many TSDoc tweaks (#3049) 2022-03-23 10:35:39 -07:00
Jeff Posnick fee6334ccc v6.5.1 2022-03-03 14:17:54 -05:00
Jeffrey PosnickandGitHub f8bf3cae73 Add inline examples (#3038) 2022-03-03 13:45:32 -05:00
Jeffrey PosnickandGitHub 82cc332673 Don't use unknown for workbox-build method config (#3037)
* Don't use unknown for config

* Relax internal type

* Tweaked casting
2022-03-02 11:28:57 -08:00
Jeffrey PosnickandGitHub 88d379d56a Re-add the default export (#3036) 2022-02-24 13:15:34 -08:00
Jeff Posnick 56cd568f6d Formatting 2022-02-23 15:37:30 -05:00
Jeff Posnick e1d5936bff v6.5.0 2022-02-23 15:30:25 -05:00
Jeffrey PosnickandGitHub 564e4bc1e2 Migrate off of source-map-url (#3031)
* WIP

* getSourceMapURL in webpack plugin
2022-02-23 11:54:13 -08:00
Jeffrey PosnickandGitHub 1b6861794b Add ossf/scorecard-action 2022-02-09 16:56:58 -05:00
Jeffrey PosnickandGitHub df5ea99f75 forceSyncFallback parameter for background sync queue (#3020)
* Support for forceSyncFallback

* Linting
2022-01-31 15:59:00 -08:00
Jeffrey PosnickandGitHub c9a6e8c4b0 Auto-generated JSON updates (#3021) 2022-01-31 14:45:30 -08:00
Jeffrey PosnickandGitHub 1b925759b1 Improved TSDocs (#3013) 2022-01-14 09:43:26 -05:00
Jeffrey PosnickandGitHub e5b68da93e waitUtil(fetchAndCachePromise) (#3015) 2022-01-14 09:42:52 -05:00
Jeffrey PosnickandGitHub 93afcb4cb1 JSDoc link cleanup (#2999)
* JSDoc cleanup

* Remove module:

* More replacements
2021-12-14 14:59:35 -08:00
Jeffrey PosnickandGitHub 62c15834ab Better error for opaque streams (#3001) 2021-12-14 11:28:42 -08:00
Jeff Posnick 38cac57a0e v6.4.2 2021-12-02 17:26:23 -05:00
Jeffrey PosnickandGitHub bde6bce1c6 Skip ignoreURLParametersMatching (#2992) 2021-12-02 17:07:30 -05:00
Jeff Posnick ef29712936 CLI flag for CDN tag 2021-11-16 10:30:08 -05:00
Jeffrey PosnickandGitHub 9882cad683 Bump a dep (#2977) 2021-11-15 15:27:30 -08:00
Jeffrey PosnickandGitHub 5e3b66223e Fix preloadResponse type (#2975)
* Fix a TS type

* Linting
2021-11-10 15:07:29 -08:00
Jeffrey PosnickandGitHub b7db94ecd4 Make request.url part of the key (#2973) 2021-11-03 13:42:01 -07:00
6e076163fe Export more classes/types publicly (#2955)
* Export more classes/types

* Fixes for test cases

* Update packages/workbox-background-sync/src/StorableRequest.ts

* Update packages/workbox-background-sync/src/QueueStore.ts

Co-authored-by: Adriana Jara <[email protected]>
2021-10-13 17:15:32 -07:00
Jeffrey PosnickandGitHub 10abc82594 Treat a missing sourcemap as a warning (#2959)
* Missing sourcemap warning

* Linting
2021-10-13 10:36:31 -07:00
Jeffrey PosnickandGitHub 2ec57c165f Updates to the contribution guide (#2949)
* Update to guides

* Update the PR template.

* Typo fix
2021-10-13 12:29:00 -04:00
Jeffrey PosnickandGitHub 803d16606a Updates for TypeScript 4.4.3 (#2950)
* Updates for TS 4.4.3

* Update package-lock
2021-10-13 09:21:56 -07:00
Jeffrey PosnickandGitHub 8450555266 Use lint-staged to run prettier (#2947)
* Try out lint-staged

* Testing

* WIP

* Another attempt

* Another test

* Linting

* Fix a test file

* More tweaks

* More git hook tweaks

* Another tweak

* Ditto

* Linting fixes
2021-09-30 09:25:28 -04:00
Jeff Posnick 45756e0104 v6.3.0 2021-09-09 13:14:37 -04:00
Jeff Posnick 674ae68180 Tweak to parserOptions 2021-09-09 12:55:32 -04:00
Jeff Posnick 756adccd7a Fix formatting 2021-09-09 12:42:02 -04:00
Jeff Posnick d93df42861 Re-add build step 2021-09-09 12:36:10 -04:00
Jeffrey PosnickandGitHub e52364e27a Update to cache@v2 (#2935) 2021-09-03 10:05:34 -07:00
Jeffrey PosnickandGitHub 7d4c4434a4 Enable prettier (#2929)
* Deps and config

* Prettier output

* Update hardcoded file sizes

* More file size updates
2021-08-26 14:57:20 -07:00
Jeffrey PosnickandGitHub af5692fd3a Allow precaching "repair" when using subresource integrity (#2921)
* Allow precaching "repair" when using SRI

* Ensure cacheability plugin is used

* Fixed up some logic

* Linting

* Better fallback logic

* Fix up tests
2021-08-26 12:10:21 -07:00
Jeffrey PosnickandGitHub 078aebe4b0 Use Application Default Credentials (#2918) 2021-08-25 15:43:01 -07:00
Jeffrey PosnickandGitHub 52aea79be0 Debug logging when caching Vary: headers (#2916)
* Debug logging for vary headers

* Linting
2021-08-25 17:42:34 -04:00
Jeffrey PosnickandGitHub 0b5c676c33 Run a single, top-level tsc --build (#2923)
* WIP

* Only clean before publish

* Refactor the JSON schema gen

* Linting
2021-08-25 16:45:19 -04:00
Jeffrey PosnickandGitHub addd3d5230 Use iframes instead of tabs (#2928) 2021-08-25 12:51:00 -07:00
Jeffrey PosnickandGitHub e7df8cee7e Preserve headers in PrecacheCacheKeyPlugin (#2914)
* Preserve headers in PrecacheCacheKeyPlugin

* Disable linting
2021-08-23 21:30:35 -07:00
Jeffrey PosnickandGitHub e255fcd4e3 Use chokidar 3.x directly (#2913)
* Use chokidar

* Fix undefined check
2021-08-19 14:46:22 -07:00
Jeffrey PosnickandGitHub e653c2c521 notifyAllClients option (#2920) 2021-08-19 14:38:46 -07:00
Jeffrey PosnickandGitHub f1e0332b8a Error.name already exists (#2922) 2021-08-19 14:28:26 -07:00
Jeffrey PosnickandGitHub c7d7f62ed4 Export all WorkboxEvents (#2919) 2021-08-18 16:22:18 -07:00
Jeff Posnick a7cf98c743 v6.2.4 2021-08-11 14:31:10 -04:00
Jeffrey PosnickandGitHub 175671eb52 Override more function validation (#2911)
* Override more fn validation

* Opt-out of linting
2021-08-11 12:44:13 -04:00
Jeff Posnick 2d008261e1 v6.2.3 2021-08-10 13:05:18 -04:00
Jeff Posnick b486d2e1d4 Small tweak 2021-08-10 13:02:29 -04:00
Jeffrey PosnickandGitHub 78ea2b7f31 Move trusted-types to deps (#2909) 2021-08-09 14:41:00 -04:00
Jeff Posnick a468d758a9 v6.2.2 2021-08-06 14:56:43 -04:00
Jeffrey PosnickandGitHub 02aed641ca Use the exact flag (#2907) 2021-08-06 14:53:56 -04:00
Jeff Posnick cd1a67695c v6.2.1 2021-08-06 14:28:22 -04:00
Jeffrey PosnickandGitHub 954d80261e No caret in lerna deps (#2906) 2021-08-06 14:07:20 -04:00
Jeffrey PosnickandGitHub cc992d4877 Switch tsc target to es2017 (#2905) 2021-08-06 13:36:07 -04:00
Jeffrey PosnickandGitHub 77cb9a704b Fix WorkboxPlugins schema validation (#2903)
* Fix WorkboxPlugins schema

* Linting
2021-08-06 12:53:16 -04:00
Jeff Posnick 2531352f4e v6.2.0 2021-08-05 13:58:30 -04:00
Jeff Posnick f08cbf626c v6.2.0-alpha.2 2021-08-02 17:34:03 -04:00
Jeffrey PosnickandGitHub d4020f3516 Modify ajv function validation (#2899)
* Remove ajv-keywords

* Linting
2021-07-28 11:02:41 -07:00
Jeffrey PosnickandGitHub b56843ba07 Export QueueOptions (#2894) 2021-07-19 17:18:34 -07:00
Jeffrey PosnickandGitHub 1d01300357 Export HandlerDidErrorCallbackParam (#2886) 2021-07-13 13:04:38 -07:00
Jeffrey PosnickandGitHub 264fbc32d7 TrustedScriptURL support (#2872) 2021-07-07 16:24:55 -07:00
Jeffrey PosnickandGitHub 0c2e942c98 rangeRequests option in runtimeCaching (#2871)
* rangeRequests runtime caching option

* Spaces for a better JSON diff
2021-07-07 16:05:24 -07:00
Jeffrey PosnickandGitHub 6dc4210081 Export WorkboxEventMap (#2870) 2021-06-22 19:02:18 -07:00
Jeffrey PosnickandGitHub 834cf26284 Mirror the ports property (#2874) 2021-06-22 18:59:32 -07:00
Jeffrey PosnickandGitHub d235904743 Temporarily disable lint_ts (#2869) 2021-06-17 13:09:28 -07:00
Jeffrey PosnickandGitHub 0655c73cd5 Remove default from the export (#2868) 2021-06-17 12:18:25 -04:00
cb618332d2 Migrate workbox-build to TypeScript (#2867)
* WIP

* Finished getManifest

* GenerateSW migrated

* Getting there

* WIP

* Runtime caching TS

* More WIP

* More WIP

* Validation, type fixes

* Builds!

* No default exports

* null support in optional strings

* Accept string or buffer again

* Fix JSDocs

* CanIUse update

* test/additional-manifest-entries-transform

* lib/bundle

* cdnUtils test

* Switched to esModuleInterop

* Still WIP

* get-file-size migration

* get-string-details test migration

* A few more

* populateSWTemplate changes

* A few more

* validate options

* Update ts-auto-guard

* Fix dependency-check

* Swapped the exports

* JSON Schema + ajv

* TS 4.1.5

* Getting closer to validation

* Some default logic

* Switched default quotes

* Cleanup optional types

* Figuring out errors

* Refactor

* Update validate-options test

* Started integration test migration

* Remove joi schema

* Fixed some swDest logic

* Closer to webpack tests working

* Fix transformManifest usage

* Use a copy of the exclude array

* More include/exclude fun

* swDest default fix

* Function support?

* modifyURLPrefix workaround

* Fix an import

* Improve error messages

* Fix test string

* New validation unit test

* getManifest working

* Working through generateSW

* Function massaging

* Cleanup of exclude/include

* Fix a few more gSW tests

* RouteMatchCallback function

* Expiration w/cacheName check

* Optional globDirectory

* InjectManifest tests

* Test cleanup

* Fix a test

* Fix a config modification

* v5 injectmanifest test

* esModuleInterop support

* Fixes for proxied build

* Final tweaks

* Linting

* Automated linting fixes

* Tweak linting rules

* Update packages/workbox-build/src/lib/get-file-details.ts

Co-authored-by: Adriana Jara <[email protected]>

* Update test/workbox-build/node/generate-sw.js

Co-authored-by: Adriana Jara <[email protected]>

* Update packages/workbox-build/src/lib/additional-manifest-entries-transform.ts

Co-authored-by: Adriana Jara <[email protected]>

* Update packages/workbox-build/src/lib/additional-manifest-entries-transform.ts

Co-authored-by: Adriana Jara <[email protected]>

* Update packages/workbox-build/src/lib/cdn-utils.ts

Co-authored-by: Adriana Jara <[email protected]>

* Update packages/workbox-build/src/lib/get-file-manifest-entries.ts

Co-authored-by: Adriana Jara <[email protected]>

* Update packages/workbox-build/src/lib/stringify-without-comments.ts

Co-authored-by: Adriana Jara <[email protected]>

* Update packages/workbox-build/src/lib/validate-options.ts

Co-authored-by: Adriana Jara <[email protected]>

* Update packages/workbox-build/src/lib/additional-manifest-entries-transform.ts

Co-authored-by: Adriana Jara <[email protected]>

Co-authored-by: Adriana Jara <[email protected]>
2021-06-17 09:41:49 -04:00
Jeffrey PosnickandGitHub 259418c754 Fix quotation chars when eval-cheap-source-map is used (#2847)
* Fix some quotation characters

* Don't use ?.

* Linying
2021-06-02 08:11:18 -07:00
Jeffrey PosnickandGitHub e9f6ef4c1f Init SWR option in constructor (#2846) 2021-05-24 14:56:26 -07:00
Jeffrey PosnickandGitHub 2dc8208e9b 5.1.2 to 6.1.5 (#2830) 2021-04-27 15:32:35 -07:00
Jeffrey PosnickandGitHub b262daaa8a fetch() stubs in Google Analytics tests (#2823)
* fetch() stubs

* Remove a comment

* One more stub
2021-04-22 16:19:48 -04:00
Jeffrey PosnickandGitHub 87dda2418f Bump the min release tag (#2814) 2021-04-12 18:22:54 -07:00
Jeffrey PosnickandGitHub 3d55b628d3 Support for --skipTests (#2813) 2021-04-12 15:54:23 -04:00
Jeff Posnick 7f9c93b97e Linting 2021-04-05 12:54:24 -04:00
Jeff Posnick 929dea67d9 Properly serialize regexps 2021-04-02 16:56:12 -04:00
Jeff Posnick 4116625ed0 Use an Error, not string 2021-03-23 10:45:48 -04:00
Jeff Posnick dac670246a External controlling events 2021-03-19 12:00:11 -04:00
Jeff Posnick 68012a3fd7 Small JSDoc fix 2021-03-16 09:43:40 -04:00
Jeff Posnick 6812e460d3 v6.1.2 2021-03-15 14:36:31 -04:00
Jeffrey PosnickandGitHub ff7281e63b Update to reflect params (#2775) 2021-03-11 11:22:52 -05:00
Jeffrey PosnickandGitHub 95432ab409 Set preventAssignment in replace (#2772) 2021-03-10 11:24:54 -05:00
Jeffrey PosnickandGitHub 3140418e68 Add Adriana and remove Phil 2021-03-09 17:04:20 -05:00
Jeff Posnick 53eeb5660b Bump min tag to publish 2021-02-22 14:18:51 -05:00
Jeff Posnick b5ba49fc4e v6.1.1 2021-02-22 14:13:56 -05:00
Jeff Posnick 689cc2af9d Skip test in firefox too 2021-02-22 14:00:11 -05:00
Jeff Posnick 5f2908387a Missing parens 2021-02-22 13:37:29 -05:00
Jeff Posnick f8174187d3 Ignore clients.claim errors 2021-02-22 13:31:16 -05:00
Jeffrey PosnickandGitHub f20ef6a125 Address tab-related flakiness in integration tests (#2754)
* Redo webdriver tab stuff

* whitespace

* Cleanup

* Wait on activation and controlling

* Skip a test in Safari
2021-02-14 11:39:25 -05:00
Jeffrey PosnickandGitHub 5070969a3a strategy JSDoc fixes (#2747) 2021-02-13 11:55:43 -05:00
Jeffrey PosnickandGitHub e6224c02be Run the correct unit tests (#2753) 2021-02-13 11:35:50 -05:00
Jeffrey PosnickandGitHub c893386b7f Fix an import path (#2750) 2021-02-11 17:00:37 -05:00
Jeffrey PosnickandGitHub ad4e3bc696 Ensure test URLs end in / (#2745) 2021-02-05 12:27:09 -08:00
Jeffrey PosnickandGitHub 9ca4001151 Parens for a linting rule (#2739) 2021-02-01 13:21:44 -05:00
Jeffrey PosnickandGitHub fb7efe85bd JSDoc cleanup (#2740) 2021-02-01 13:21:10 -05:00
Jeff Posnick 1097892cac v6.1.0 2021-01-29 15:44:23 -05:00
Jeffrey PosnickandGitHub bf2a622fbf Ensure bad responses aren't cached (#2738)
* Don't cache bad responses

* Allow cacheWillUpdate to fail install

* Linting

* Typos
2021-01-29 13:50:07 -05:00
Jeffrey PosnickandGitHub 5186868af5 Account for chunkNames (#2735) 2021-01-27 16:00:42 -05:00