Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

ractive

Package Overview
Dependencies
Maintainers
4
Versions
643
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ractive - npm Package Versions

23
65

1.4.4

Diff

evs-chris
published 1.4.3 •

evs-chris
published 1.4.2 •

Changelog

Source

1.4.2

2023-03-10

  • Bug fixes
    • Resolve a parent context above a reference expression will now work correctly.
evs-chris
published 1.4.1 •

Changelog

Source

1.4.1

2022-09-27

  • Bug fixes
    • Event handlers with auto-linked argument paths that are only referenced from the handler will now ensure that they have a runloop to avoid throwing.
evs-chris
published 1.4.0 •

Changelog

Source

1.4.0

2022-02-25

  • Bug fixes

    • Embedded typings are improved: added missing methods and properties and improved extend support.
    • yields in non-isolated components will avoid creating implicit mappings by properly skipping the component fragment to the container fragment when resolving references (#3351).
    • Components initialized from a template will now call the component constructor. There's a new component: boolean property on init options passed to the constructor that is set to true when the view is initilizing the component. This also avoids double init.
    • An event handler removed while firing will no longer throw.
    • Context find methods now support the options that the instance versions support.
    • Custom elements are now checked in a hopefully more cross-browser way.
    • Links will now propagate changes that happen in their source models up to their parent model.
    • Computations that have a dependency that causes the computation to invalidate while computing will no longer get stuck, as the change notification will be passed through even though the computation is currently computing. (#3380)
    • Elements with no attributes will no longer throw during render if they happen to be transitioned.
    • Custom events that are torn down before they have a chance to fully render will no longer throw.
    • Virtual get and set with deep try to do the right thing with Dates. (#3388)
    • Computeds that get computed during a link will no resolve the correct dependency.
    • Swapping an element with splice will now properly notify upstream paths.
  • Experimental new features

    • Computation setter functions now receive a context argument, and both getter and setter functions now receive a keypath argument.
    • Component styles can be split into multiple managed style tags in the document head by setting Ractive.perComponentStyleElements to true.
    • Methods that set a single value will now return the new value as the resolution of the returned promise e.g. r.toggle('foo') if foo is falsey will return a promise that resolves to true. add/subtract/set behave similarly.
    • Decorators and custom events can now access their local context, in the case of a yielded attribute partial, with this.getLocalContext().
    • Delegated events now proxy stopPropagation, stopImmediatePropagation, and preventDefault to behave a bit more like a non-delegated event would be expected act.
    • If you need to have precise control over whitespace handling in a template, particularly around additional lines that only have block tags, you can use a new parser flag preserveStandaloneSections in addition to a - trailing sigil in the mustache to consume all of the whitespace around the tag, effectively removing its line from the output. This is modelled on the on similar Liquid functionality. (#3338)
evs-chris
published 1.4.0-build-67 •

evs-chris
published 1.4.0-build-66 •

evs-chris
published 1.4.0-build-65 •

evs-chris
published 1.4.0-build-64 •

evs-chris
published 1.4.0-build-63 •

23
65
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc