Skip to content

Releases: WeareJH/config-gen

0.5 The one with more options

30 Apr 14:36
Compare
Choose a tag to compare

features

  • make proxy timeout configurable 795f3c5

    Many users were seeing 504 timeout errors - this is often because of how
    slow Magento is to run locally.

    The solve this problem, provide this new flag in the following way

    ~/Downloads/config-gen --proxy_timeout_secs 100 --config config.yml "https://mysite.test"
  • also apply timeout to proxy requests 75a5a32

  • added PresetOptions 21d1076

  • validate presets before starting a server b6ce59d

  • making paths configurable abf631d

fix

  • ensure loaders.js returns a body if not required. fixes #47 a4a6db0

improvement

0.4

08 Nov 20:40
Compare
Choose a tag to compare
0.4

Demo

Note: The following is just a static representation of a Magento 2 homepage. It's there just to illustrate
the performance benefits that are possible when using the RequireJS Optimizer

https://laughing-darwin-eb1b63.netlify.com/

You can also look at the following 10 commits to see exactly how I reached a score 83 on Lighthouse https://github.com/shakyShane/m2-static/commits/master


fix

  • ensure duplicated are excluded from child bundles ed1a944
  • Config json / yml tree - build.json doesn't have all bundles - fixes #39 52be2cc
  • separate parsing of requirejs-config.js to enable use in wasm - fixes #38 27c59d0
  • don't apply fixes that can be applied by module-level requirejs-config.js - fixes #36 e0f656f
  • inline_text should be inlineText in build.json - fixes #35 24f7799
  • build.json should be optimize=uglify by default - fixes #34 f45c1b8
  • parse the entire requirejs-config.js file - fixes #32 19d44a5
  • should support a 'default' configuration (zero config) - fixes #29 6c7b4bb

misc

  • added E2E test to enable WASM module to work on 3 string inputs a208bb5

refactor

  • making the entire BuildConfig possible from string inputs only f5e637e

docs

  • add tip about the network cache 44c978b

readme

ci

0.4-rc1

04 Nov 07:17
Compare
Choose a tag to compare
0.4-rc1 Pre-release
Pre-release
remove edition from from_file module

0.3

20 Oct 09:24
Compare
Choose a tag to compare
0.3

This release contains some crucial bug-fixes that will allow config-gen to work
with many more M2 setups - if you find an M2 installation where the proxy is not working,
please file an issue :)


fixes

  • forward redirects from proxy target (and upgrade them) 8a0a972

    Some server configurations will redirect when a url is missing a trailing slash, which is now supported.
    But we also noticed a case (when testing real-world server setups) where a location header contained
    an insecure url, like accessing https://example.com might redirect to http://example.com/uk -
    following that address would cause another redirect back to the secure version https://example.com/uk.

    The problem being that the config-gen proxy is only bound to a single port on the host machine, so
    it cannot handle the 'middle' part of that chain (serving the http://example.com/uk bit).

    The solution to this problem is to always upgrade the scheme in location headers to match the proxy scheme.

    Problem solved, and it can now handle these weird server setups :)

  • should not enforce yaml for config files, should also allow json - fixes #25 a0f9289

  • should always bind to a random, available port unless overridden with --port - fixes #21 6c4879c

    When you run config-gen now, it will also run on a random port. To override this, provide --port:

    # will bind to a random port
    config-gen https://example.com --config config.json
    
    # will try to bind to 9000, and will fail if it's unavailable
    config-gen https://example.com --config config.json --port 9000
  • should match (case-insensitive) on header values #27 57a94da


ci

  • ensure cargo fmt was run on codebase e2d9a04
  • add markdown badge d97858b
  • remove experimental features to ensure builds on stable are ok 5a4d363
  • fixed SSL support 55347de d70dabe

deps

  • update to latest actix-web d8f42cd

tests

  • added test utils to make e2e testing simpler 17d7b99
  • added full E2E test for proxy transform 85e8f81
  • should support high-level integration tests - fixes #20 275f8c5

0.2 - bug fixes

12 Oct 21:10
Compare
Choose a tag to compare

fixes

  • Don't always set env-var for logging e057519
  • API errors should have correct status code - fixes #15 ee4646d
  • Doesn't release port when application is shutdown - fixes #14 9f43b9f
  • fixing middleware fallthrough 114e816
  • ssl: ensure certs are packaged in the binary - fixes #18 4ef827b
  • ssl: should support self-signed certs on the proxy target (for local development) - fixes #17 279b271 279b271

0.1 (POC release)

10 Oct 09:02
Compare
Choose a tag to compare

There is much work to be done, but this is already in a useful state, so we see a 0.1 release :)