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

Bump slimmer from 9.0.1 to 10.1.3 #226

merged 1 commit into from Apr 6, 2017

Bump slimmer from 9.0.1 to 10.1.3 #226

merged 1 commit into from Apr 6, 2017


Copy link

@fofr fofr commented Apr 6, 2017

We're seeing high memory usage for manuals-frontend that corresponds with component memory leaks.

cc @h-lame @tijmenb @cbaines


  • Fix memory leak in components


  • Bugfix for request URI's encoded as ASCII


  • Bugfix for caching behaviour


  • Use Rails.cache as the cache for templates, locales and components. You can
    remove config.slimmer.use_cache for your application, as you can no longer
    opt-out of caching.
  • Add a User-Agent header to all outgoing API requests


  • Removes the need_id meta tag, which is no longer used.
  • Removes the functionality for breadcrumbs, related links and artefact-powered
  • Drop support for old Rails & Ruby versions. This gem now supports Rails 4.2 and 5.X
    on Ruby 2.1 and 2.2.
  • Renames Slimmer::SharedTemplates to Slimmer::GovukComponents


  • Adds an 'inside header inserter' processor which allows an application to
    inject a block of HTML after the logo by including a .inside-header element
    in their application’s output.
    (PR #167 alphagov/slimmer#167)

  • Remove MetaViewportRemover processor as it is no longer used.
    (PR #166 alphagov/slimmer#166)


  • Adds a Cucumber helper that makes it easy for host applications to
    configure Slimmer correctly under test.

    (PR #162 alphagov/slimmer#162)


  • Adds an RSpec helper that makes it easy for host applications to
    configure Slimmer correctly under test.

    Fixes stub_shared_component_locales helper to correctly stub HTTP
    requests to fetch locale information when rendering its templates.

    (PR #159 alphagov/slimmer#159)


  • Bugfix: Over time, the I18n backend would be chained in each request,
    causing the stack to grow too large and use too much memory

    (PR #157 alphagov/slimmer#157)


  • Allows frontend apps to stub component locales for example

    class ActiveSupport::TestCase
      include Slimmer::TestHelpers::SharedTemplates
      def setup

    (PR #155 alphagov/slimmer#155)


  • Integrates translations from GOVUK Components to be used in applications

    When including Slimmer::SharedComponents, the I18nBackend will be chained to Slimmer::I18nBackend allowing translations in static to work in the frontend applications

    (PR #152 alphagov/slimmer#152)


  • Replaces deprecated before_filter calls in shared templates.


  • Raise a custom CouldNotRetrieveTemplate exception when a connection to the assets server can't be made because of an SSL problem (PR #143).


  • Allow applications to request components using full or partial component
    paths, eg "name", "name.raw" and "name.raw.html.erb". This allows
    components to be nested within other components.
* Fix memory leak with components: alphagov/slimmer#191
* Stub locale requests: alphagov/slimmer#159
@fofr fofr force-pushed the bump-slimmer branch from 2b74b16 to 65f80f6 Apr 6, 2017
cbaines approved these changes Apr 6, 2017
tijmenb approved these changes Apr 6, 2017
@fofr fofr merged commit d030984 into master Apr 6, 2017
2 checks passed
2 checks passed
continuous-integration/jenkins/branch This commit looks good
security/snyk No new vulnerabilities
@fofr fofr deleted the bump-slimmer branch Apr 6, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

3 participants
You can’t perform that action at this time.