Skip to content

chore(deps): update dependency surface to ~> 0.12.0#208

Open
renovate[bot] wants to merge 1 commit intomainfrom
renovate/surface-0.x
Open

chore(deps): update dependency surface to ~> 0.12.0#208
renovate[bot] wants to merge 1 commit intomainfrom
renovate/surface-0.x

Conversation

@renovate
Copy link
Copy Markdown

@renovate renovate bot commented Sep 25, 2022

This PR contains the following updates:

Package Type Update Change
surface (source) prod minor ~> 0.7.0~> 0.12.0

Release Notes

surface-ui/surface (surface)

v0.12.3

Compare Source

  • Force triggering the surface compiler on JS hooks changes (#​775)
  • Remove compile-time dependency between catalogue examples and subjects (#​774)

v0.12.2

  • Fix compile errors/warnings with Elixir v1.19
  • Fix compitibility issues with Liveview >= v1.1
  • Remove support for Elixir < v1.14
  • Remove support of experimental :for.index without generator
  • Optimize compiler using manifest to void unnecessary compilation when there's no change

v0.12.1

  • Support Liveview 1.0 (#​760)
  • Improve errors and diagnostics (#​757)
  • Fix printing diagnostics on hot code reloading (#​754)
  • Fix attr={...} error

v0.12.0

Compare Source

  • Add column information to diagnostics to improve error/warning messages during compiler validation
  • Add compiler option :generate_assets to switch on/off component-related CSS/JS generation
  • Fix warning line when using @deprecated on function components
  • Raise compile error when catalogue module cannot be found
Deprecations
  • Deprecate components <LivePatch>, <LiveRedirect> and <Link>, in favor of <.link>
  • Deprecate component <Context> as support for scoped-aware context is planned to be removed in v0.13.
Breaking Changes
  • Move all form-related components, including <Form> and all inputs to a separate surface_form_helpers project.
    For more info, see Migration Guide.
  • Rename Surface.Catalogue.Example to Surface.Catalogue.LiveExample as its use now should only be required in
    live examples that update assigns through handle_event calls
  • Remove deprecated slot attributes for, name and ìndex
  • Remove deprecated slot :args option and directive

v0.11.5

Compare Source

  • Support Liveview ~> 0.20.15 (#​749)

v0.11.4

Compare Source

  • Add support for Liveview ~> 0.20.10 (#​743)

v0.11.3

Compare Source

  • Restrict phoenix_live_view version up to 0.20.9 due to compatibility
    issues introduced by phoenix_live_view 0.20.10 regarding debug annotations.
Soft Deprecations

v0.11.2

Compare Source

  • Add support for Liveview >= v0.20 (#​714)
  • Add support for debug annotations using liveview's debug_heex_annotations config.
  • Avoid using deprecated hidden_inputs_for in HiddenInputs (#​716)
  • Update Tailwind patcher for phx_new >= 1.7.8 (#​724)
  • Add a Dockerfile patcher for surface.init (#​727)
  • Fix error related to _persistent_id (#​716)
  • Fix warning about negative steps in Elixir 1.16 (#​718 and #​722)
  • Fix Malformed HTML in rendered.js error
  • Fix error when passing special chars as literals inside an expression
Soft Deprecations
  • LivePatch and LiveRedirect have been deprecated in favor of liveview's built-in <.link>.
    See https://hexdocs.pm/phoenix_live_view/live-navigation.html for more info.
  • The Form component along with all form inputs will be moved to a separate project and
    later deprecated in favor of their LiveView built-in counterparts.
  • Scope-aware context as described in https://surface-ui.org/contexts#scope-aware-context will
    be deprecaded and fully removed in v0.13. The reason is the lack of built-in support for the
    feature in Liveview itself, which leads to inefficient diff-tracking when using it. Global context
    related functions like Context.put and Context.get, as well as the :from_context option, will
    be kept as their use don't affect diff-tracking negatively.

v0.11.1

Compare Source

  • Warn when module given to catalogue_test doesn't exist or is not a component (#​711)
  • Fix inputs_for/3 warnings (#​703)

v0.11.0

Compare Source

  • Add support for Liveview v0.19 (#​692)
  • Fix Context.get/put in LiveComponent's update callback (#​691)
  • Fix issue when passing css_class props inside vanilla LV components' slots (#​680)

v0.10.0

Compare Source

  • Add support for Liveview v0.18.8
  • Add support for Phoenix v1.7
  • Introduce an optional css_variant option to prop and data to support auto-generation of CSS (tailwind)
    variants based on their values
  • Add embed_sface/1 macro to allow adding .sface template as a function component
  • Collect and generate @import entries from components to the top of the file to adhere to the CSS spec
  • Fix CSS scope so it can be shared by all function components in the same module, avoiding unnecessary use of :deep

v0.9.5

Compare Source

Improves compatibility with minor dependency versions used by Surface v0.9, this will improve the upgrade (mix deps.update --all) of apps that depend on this version.

  • Compatibility with phoenix_live_view ~> 0.18.18
  • Compatibility with phoenix ~> 1.6.16
  • Compatibility with phoenix_html ~> 3.3.1

v0.9.4

Compare Source

  • Update phoenix_live_view to v0.18.14
  • Fix warnings on forms
  • Fix warning on unknown props of function components
  • Remove dependency on Mix.env() on re-compiling components at runtime

v0.9.3

Compare Source

  • Fix error when trying to add the caller's scope_id attr to a MacroComponent

v0.9.2

Compare Source

  • Compatibility with Liveview >= v0.18.5
  • Optimize static props for diff tracking
  • Fix child components' root DOM element not belonging to the parent's scope (#​670)
  • Fix missing shortdoc on surface.init prevents task discovery from mix help (#​666)

v0.9.1

Compare Source

  • Fix dialyzer errors

v0.9.0

Compare Source

  • Support Liveview v0.18

v0.8.4

Compare Source

  • Fix dialyzer errors

v0.8.3

Compare Source

  • Add :global pseudo-class to the Scoped CSS's API
  • Declare props container, session and sticky on Surface.LiveView
  • Fix CSS tokenizer not handling empty strings
  • Fix CSS parser for declarations with commas or variants
  • Fix scoped styles on void elements
  • Fix dialyzer issue in EExEngine (#​655)

v0.8.2

  • Remove compile-time deps from components, avoiding unnecessary recompilation
    of extra files due to transitive deps (#​653)
  • Fix components oversized beam files (#​651)
  • Fix error on layout templates containing <style>

v0.8.1

  • Fix surface compiler when setting a different css_output_file (#​646)
  • Fix formatter for :debug

v0.8.0

  • Support scoped CSS styles for components using either inline <style> tags or colocated
    .css files (#​621)
  • Add render_sface/1 to allow overriding render/1 and compute/update assigns when using
    external .sface files
  • Add --tailwind option to mix surface.init to bootstrap a project with TailwindCSS support
  • Add --layouts option to mix surface.init to replace .heex layout files with corresponding
    .sface files
  • Add --web-module option to mix surface.init to override the default web module (#​638)
  • Support using the :hook directive to point to the default hook exported in the .hooks.js file
  • Add option from_context to prop and data to allow setting values directly from the context
  • Add Context.put/3 and Context.get/2 to allow manipulating the context inside
    lifecycle callbacks and render/1
  • Add prop context_put to <#slot> to pass context values directly to a slot without propagating
    context values to other components
  • Add config :propagate_context_to_slots to restrict context propagatiion, optimizing diff tracking
  • Add functions Context.copy_assign/3, Context.maybe_copy_assign/3 and Context.maybe_copy_assign!/3
  • Add catalogue_test/1 macro to generate basic tests for catalogue examples and playgrounds
  • Add module Surface.Catalogue.Examples to allow defining multiple stateless examples
    in a single module
  • Support editing slot values as text in playgrounds (Catalogue)
  • Fix context propagation in dynamic components
  • Fix context propagation in recursive components
  • New API for Slot arguments and generator (#​613)
Deprecations
  • Deprecate <InputContext> in favor of declarative option from_context
  • Slots (#​613)
    • Option :args has been deprecated, use
      • slot arg: :string instead of slot args: [:name]
      • slot arg: %{name: :string, age: number} instead of slot args: [:name, :age]
    • Attribute for has been deprecated, use <#slot {@&#8203;header}> instead of<#slot for={@&#8203;header}>
    • Attributes name and index have been deprecated, use <#slot {col}> instead of<#slot name={"col"} index={index}>
    • Directive :args has been deprecated, use
      • <#slot {@&#8203;default, name}> instead of <#slot :args={name: name}>
      • <#slot {@&#8203;default, name: name, age: age}> instead of <#slot :args={name: name, age: age}>
Breaking Changes
  • Drop support for Elixir < v1.12
  • Context values are no longer automatically propagated through slots. Components that need to
    pass values to the parent scope via slots must explicitly set propagate_context_to_slots: true
    in their configuration
  • Slots (#​613)
    • New option :generator_prop use slot default, generator_prop: :items instead of slot default, args: [item: ^items], associated prop :items must be of type :generator
    • New attribute generator_value use <#slot generator_value={item} /> instead of <#slot :args={item: item} />
    • <#template slot="slot_name"> has been removed in favor of <:slot_name> (#​575)

v0.7.6

  • Support Elixir v1.14

v0.7.5

Compare Source

  • Support using vanilla phoenix function components with slots in surface templates

v0.7.4

Compare Source

  • Optimize the surface compiler for assets generation
  • Improve support for JS hooks in umbrella projects (#​591)
  • Suppress Mix.Tasks.Format behaviour warning on Elixir < v0.13

v0.7.3

Compare Source

  • Fix loading component prop's default values

v0.7.2

Compare Source

  • Support more extensions other than .js as colocated hooks (jsx, ts and tsx) (#​576)
  • Update the surface.init task to set up the catalogue to v0.4

v0.7.1

Compare Source

  • Fix wrong target handling in forms
  • Fix setting @moduledoc false in catalogue examples (#​565)
  • Support Inputs' property for as string (#​564)

Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Enabled.

Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate renovate bot enabled auto-merge (rebase) September 25, 2022 14:26
@renovate
Copy link
Copy Markdown
Author

renovate bot commented Sep 25, 2022

⚠ Artifact update problem

Renovate failed to update an artifact related to this branch. You probably do not want to merge this PR as-is.

♻ Renovate will retry this branch, including artifacts, only when one of the following happens:

  • any of the package files in this branch needs updating, or
  • the branch becomes conflicted, or
  • you click the rebase/retry checkbox if found above, or
  • you rename this PR's title to start with "rebase!" to trigger it manually

The artifact failure details are included below:

File name: mix.lock
Command failed: mix deps.update surface
** (Mix) Hex dependency resolution failed

@renovate renovate bot force-pushed the renovate/surface-0.x branch from a67188c to e6870d4 Compare May 28, 2023 09:16
@renovate renovate bot changed the title chore(deps): update dependency surface to ~> 0.9.0 chore(deps): update dependency surface to ~> 0.10.0 May 28, 2023
@renovate renovate bot changed the title chore(deps): update dependency surface to ~> 0.10.0 chore(deps): update dependency surface to ~> 0.11.0 Jun 2, 2023
@renovate renovate bot force-pushed the renovate/surface-0.x branch from e6870d4 to 78827d1 Compare June 2, 2023 17:21
@renovate renovate bot force-pushed the renovate/surface-0.x branch from 78827d1 to b47438a Compare September 24, 2024 14:46
@renovate renovate bot changed the title chore(deps): update dependency surface to ~> 0.11.0 chore(deps): update dependency surface to ~> 0.12.0 Sep 24, 2024
@renovate
Copy link
Copy Markdown
Author

renovate bot commented Sep 24, 2024

⚠️ Artifact update problem

Renovate failed to update an artifact related to this branch. You probably do not want to merge this PR as-is.

♻ Renovate will retry this branch, including artifacts, only when one of the following happens:

  • any of the package files in this branch needs updating, or
  • the branch becomes conflicted, or
  • you click the rebase/retry checkbox if found above, or
  • you rename this PR's title to start with "rebase!" to trigger it manually

The artifact failure details are included below:

File name: mix.lock
Command failed: mix deps.update surface
warning: setting :preferred_cli_env in your mix.exs "def project" is deprecated, set it inside "def cli" instead:

    def cli do
      [preferred_envs: ["vcr.show": :test, "vcr.check": :test, "vcr.delete": :test, vcr: :test, "coveralls.post": :test, "coveralls.json": :test, "coveralls.html": :test, "coveralls.detail": :test, coveralls: :test]]
    end

  (mix 1.19.5) lib/mix/cli.ex:187: Mix.CLI.preferred_cli_env/3
  (mix 1.19.5) lib/mix/cli.ex:170: Mix.CLI.maybe_change_env_and_target/2
  (mix 1.19.5) lib/mix/cli.ex:59: Mix.CLI.proceed/2
  /opt/containerbase/tools/elixir/1.19.5/bin/mix:7: (file)
  (elixir 1.19.5) src/elixir_compiler.erl:81: :elixir_compiler.dispatch/4
  (elixir 1.19.5) src/elixir_compiler.erl:56: :elixir_compiler.compile/4

** (Mix) Hex dependency resolution failed

@renovate renovate bot changed the title chore(deps): update dependency surface to ~> 0.12.0 chore(deps): update dependency surface to ~> 0.12.0 - autoclosed Jul 30, 2025
@renovate renovate bot closed this Jul 30, 2025
auto-merge was automatically disabled July 30, 2025 22:12

Pull request was closed

@renovate renovate bot deleted the renovate/surface-0.x branch July 30, 2025 22:12
@renovate renovate bot changed the title chore(deps): update dependency surface to ~> 0.12.0 - autoclosed chore(deps): update dependency surface to ~> 0.12.0 Jul 31, 2025
@renovate renovate bot reopened this Jul 31, 2025
@renovate renovate bot enabled auto-merge (squash) July 31, 2025 13:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants