Releases: helpscout/proxypack
v0.3.2
v0.3.1
Various Fixes
Changed how Public Path was Modified in the Webpack Plugin
We were previously using a 3rd Party plugin for this functionality.
Webpack allows to automatically split and load code using require.ensure or dynamic import import(). Those modules are fetched on-demand when your main bundle is running in browser.
Webpack loads the modules (chunks) from a static URL, which is determined by config.output.publicPath of webpack configuration in the compiler.
In this case we are over writing this path to make sure that dynamic imports are resolved via ProxyPack's local node server.
This url is injected into the web browser, via the domain interceptor, but since web pack compiles this path we also need to make reference to it in source code (which is also better because we no longer need to inject it, we just write it into the bundled files).
Changed how WebPack compiler hooks are handled in ProxyPack
Since we are adding additional hooks to the compiler process, also added a way to manage hooks if they are legacy < 4 or > 4.
Fixed Firefox not being able to be opened from CLI
This was broken when we added a better way to manage SSL. The library we were using can't handle setting that pref.
We now manage FireFox independently by creating a custom profile and passing it when we want to open FireFox from the bin file. This will also make future updates to any FireFox functionality much easier to manage.
Added a way to set a Proxy in Safari
ProxyPack was never working in Safari, as there is not a way to setup a Proxy when you open Safari, however there is a way to setup a WebProxy and a SecureWebProxy in MacOSx that Safari respects.
Fixes bug in Domain Interceptor caused by 0.2.3
Fixes bug in Domain Interceptor caused by 0.2.3
Simple Cache and Splat Params
1 - this adds nested routes to localMappings in ProxyPack. This makes it possible to easily map a nested folder structure.
2 - this also adds a simple cache to reduce reads from local filesystem
For example if your images dir contained app1 and app2 and you wanted to map all these directories to the local filesystem with the following structure:
--|images|app1|dir1|thing.gif
--|images|app2|dir2|dir3|thing2.gif
You would use the following path to proxy all locally mapped assets in the ProxyPack plugin:
https://.cloudfront.net//images/*folders/:image': ${__dirname}/site/images/
Note: *folders is a splat parameter. Splat parameters are like wildcards, only that they will capture the value of the identifier that comes after the *.
Adds install function
- this adds openssl as a dependency
- we now generate our own certificate authority, and make ssl certs
- hoxy requires the CA key, and cert
- our webpack server requires the server cert
- for mac osx the SSL certs will be auto added to keychain
- adds an install command
Don't add CSP Headers if the don't exist
The local domain doesn't need to be added to CSP unless a CSP header already exists, otherwise we grab the existing CSP header and merge the local domain in.
v0.1.9
Fixes CSP Headers
This update mainly fixes 2 issues:
- we now merge the CSP headers from the origin server in the intercept
- fixed a bug where domain / browser wasn't being applied when the browser was being opened