Skip to content

Latest commit

 

History

History
235 lines (180 loc) · 8.2 KB

CHANGELOG.md

File metadata and controls

235 lines (180 loc) · 8.2 KB

See UPGRADE.md for instructions on upgrading between versions.

0.52.0-dev

  • First LV version
  • Config: Add admin_module: MyAppAdmin to your config/brando.exs
  • Trait.changeset_mutator/4 is now Trait.changeset_mutator/5. It receives some additional opts from changeset, that normally would not be touched.
  • Page properties are now page vars. get_prop -> get_var
  • render_sections_css -> render_palettes_css
  • Added input :gallery
  • Added input :color
  • Allow setting additional app specific cron jobs with
    config :my_app,
      cron_jobs: [
        {"0 0 * * *", MyApp.Worker.RefreshFrontpage}
      ]
    
  • Added Brando.Plug.Media

0.51.0

  • NOTE: This will be the final GraphQL/Vue version. Next version will be with LiveViews!
  • Vite: Respect hmr config setting. Set it to true in your dev.exs, and false in prod.exs
  • Query: Add mutation :duplicate
  • Images: Add dominant_color to image struct.
  • Revisions: Adds initial revision support.
  • Publisher: Add Oban job support for scheduled publishing
  • Pagination: Add pagination: true to generate pagination meta for list queries
  • SSG: Add barebones start
  • Villain: Replace $timestamp in Villain HTML
  • Villain: Added localized date filter
  • Router: Add Brando.Plug.Fragment to assign a map of fragments to you connection:
    plug Brando.Plug.Fragment, parent_key: "partials", as: :partials
    

0.50.0

  • Query: Add get_<schema>! version that raises on no result

  • Query: Add insert/update/delete mutations. See UPGRADE.md

  • Query: Add cache to get_*

  • Query: Add joined order_by:

    {:ok, posts} = list_posts(%{order: [{:asc, {:comments, :title}]})

  • Soft Delete: Add cron job to check for expired soft deleted entries

  • Villain: Removed markdown parsing from Text blocks.

  • Villain: Refactored templates as modules, see UPGRADE.md

  • Villain: Add {% hide %} tag for hiding content only in the Villain Editor.

  • Router: Add admin_routes/0 and page_routes/0

  • Router: Add :put_extra_secure_browser_headers

  • Frontend: Add Vite tooling, see UPGRADE.md

  • Releases: Improved ReleaseTasks -- works better with Elixir releases

0.49.0

  • BREAKING: Removed mogrify/imagemagick -- use sharp-cli/sharp instead.
  • Move to mix releases from Distillery for new project template.
  • Add webp processing to png and jpeg assets. Falls back to png/jpeg if browser does not support webp.
  • Add ?vsn=d to all fonts.pcss URLs to fix fonts not caching.
  • Dynamic redirects.
  • Live preview: Changed syntax - see UPGRADE.md
  • Live preview: Now sends entry diffs on update to save some bandwidth
  • Live preview: Send base64 of images on entry creation
  • Villain: Added telemetry for parse_and_render
  • Try to rotate images by EXIF info on upload
  • Add system startup warnings to Brando JS
  • Better Villain template authoring experience
  • Add Brando.HTML.preload_fonts/1

0.48.0

  • Switch to Liquex. {% for item <- entry.items %} -> {% for item in entry.items %} ${global:category_key.global_key} -> {{ globals.category_key.global_key }} ${menu:main.en} -> {{ navigation.main.en }}

    Brando checks for old syntax and warns on system startup.

  • Villain: Allow undeleting refs in template blocks

  • BrandoJS/config: allow templates config to be a function. Gets called with page

  • Add Brando.Type.Video with corresponding KInputVideo

  • Cache navigation menus

  • Add Query cache. Page.list_pages(%{status: :published, cache: true})

  • Add sizes: "auto" to picture_tag

  • Removed Brando.Registry and old i18n logic

  • English translations for BrandoJS

  • Set image meta editing as default true on Image fields in BrandoJS

  • Inject --aspect-ratio css var for video_tag

  • Add address2 and address3 in Identity for extra address lines

  • Add navigation to villain templates context

  • Optimized sequencing query. Now only performs a single query

  • Add cache option to Brando.Query list functions

0.47.0

  • Add page properties.
  • Fix ordering of translation fragments
  • Fix lightbox src with lazyload in picture_tag
  • Rerender matching templates in Villains when updating globals or identity
  • Add render_caption callback to Villain parser. Picture blocks call this to render captions.
  • Set fehn 3.0 as default Docker image (Ubuntu 20.04)
  • Allow parsing RFC 3339z datetime strings in date filter
  • Add sitemap logic, Brando.Sitemap.
  • Add oban for cron jobs.
  • Add orientation filter
  • Dynamic navigation V1
  • Cleaned up Brando.Pages.get_page/* functions
  • Added publish_at logic to pages.
  • Use imageType fragment in generator
  • Add select logic to Brando.Query
  • Fix nonstandard module naming bugs in generator (NNCA would become Nnca etc)

0.46.0

  • New parser for template language!
  • Added CDN image uploads.
  • Deprecated Pages.list_page_fragments_translations. Use Pages.list_fragments_translations instead.
  • Switch frontend bundler to Rollup
  • Renamed User.full_name to User.name. Requires BrandoJS to be updated.

0.45.0

  • Rewrote upload handling. Requires latest BrandoJS to work!
  • Please ensure that |> generate_html() appears LAST in your schema's changeset functions. This is to ensure that any ${entry:field} interpolation passes successfully!
  • Mandatory /2 for all parser functions. Second argument is an options list. Mostly for futureproofing and caching templates
  • Optimized Dockerfile templates.
  • picture_tag moved moonwalk to <picture> tag instead of <img>
  • Simplify needed brando.exs config
  • Removed deprecated Brando.Config genserver.
  • Started laying the foundation for authorization. See UPGRADE.MD
  • Rename mix task brando.gen.html -> brando.gen
  • Add meta_image field to Brando.Page
  • Add Brando.Datasource
  • Smarter Dockerfile layer caching
  • Add globals to identity configuration
  • Add variables to Villain templates
  • Improve default backend eslint configuration
  • Add creator switch to generator
  • Copy static files in development
  • New JS backend — BrandoJS
  • Add Brando.Datasource. Allows you to access preset backend queries from Villain.
  • Simplify Villain default parser. Now you can use Brando.Villain.Parser for sensible defaults, and override when neccessary.
  • KInputTable: Rename newRows -> addRows

DEPRECATIONS

  • Move put_creator to after cast but before validate_required in your changeset functions.

0.44.0

  • Drag and drop sequence pages.
  • Ensure all jpg files are written as .jpg
  • Move to local backend JS for tighter integration.
  • Generator now generates a more complete staging config
  • Generator separates out the form for backend schemas
  • GraphQL rewrite to use Dataloader internally, also when using brando.gen.html
  • Rename Brando.Field.ImageField -> Brando.Field.Image.Schema
  • Rename Brando.Field.FileField -> Brando.Field.File.Schema

0.43.0

  • Add Brando.HTML.init_js()
  • Change potentially long identity fields to :text.
  • Adds custom meta from identity setup to page

0.42.0

  • Moved js deps to @univers-agency package scope.
  • Brando.User is now Brando.Users.User for consistency.
  • In session_controller.ex, ensure user has not been soft deleted in create/3
  • Soft deletion fields have been added.
  • Switch out the :hmr logic for css and js
  • Run startup checks
  • More advanced META and JSONLD handling.
  • Added SHARP image processing. Choose this for the fastest/highest quality
  • Removed all import Brando.Images.Optimize and optimize/2 in changeset functions.

0.41.0

  • Tables have been renamed.
  • Fragments now belong to pages.

0.40.0

  • Copy the brando.upgrade mix task from brando src.
  • Switch all your image fields to :jsonb types in migrations from :text.

0.39.0

  • Clean up time! Lots of deprecations and changes. See UPGRADE.md

0.38.0

  • Update for Ecto 3, Phoenix 1.4
  • More configuration choices in backend/config
  • Add opts to body_tag
  • Add config genserver
  • More flexible cookie_law
  • Add rerendering of page fragments
  • Larger default image sizes
  • Rewritten backend JS
  • Rewritten generators
  • Rewritten image handling

0.37.0

  • Guardian was updated. Router changes. See UPGRADE.md
  • render_fragment has been renamed to fetch_fragment.
  • brando_pages has been incorporated into brando core.

pre 0.37.0