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

@lion/core

Package Overview
Dependencies
Maintainers
1
Versions
66
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@lion/core - npm Package Compare versions

Comparing version 0.2.1 to 0.3.0

src/UpdateStylesMixin.js

11

CHANGELOG.md

@@ -6,2 +6,13 @@ # Change Log

# [0.3.0](https://github.com/ing-bank/lion/compare/@lion/core@0.2.1...@lion/core@0.3.0) (2019-11-13)
### Features
* remove all deprecations from lion ([66d3d39](https://github.com/ing-bank/lion/commit/66d3d390aebeaa61b6effdea7d5f7eea0e89c894))
## [0.2.1](https://github.com/ing-bank/lion/compare/@lion/core@0.2.0...@lion/core@0.2.1) (2019-10-23)

@@ -8,0 +19,0 @@

2

index.js

@@ -57,3 +57,2 @@ /**

export { DelegateMixin } from './src/DelegateMixin.js';
export { DomHelpersMixin } from './src/DomHelpersMixin.js';
export { LionSingleton } from './src/LionSingleton.js';

@@ -63,1 +62,2 @@ export { SlotMixin } from './src/SlotMixin.js';

export { DisabledWithTabIndexMixin } from './src/DisabledWithTabIndexMixin.js';
export { UpdateStylesMixin } from './src/UpdateStylesMixin.js';
{
"name": "@lion/core",
"version": "0.2.1",
"version": "0.3.0",
"description": "Core functionality that is shared across all Lion Web Components",

@@ -42,3 +42,3 @@ "author": "ing-bank",

},
"gitHead": "8b913524df625ca152b53d3379a8fb3c51c7f2cc"
"gitHead": "90e6b4ef36bb5c49cfe7e4b2b8a00128334c84ab"
}

@@ -15,11 +15,4 @@ # Core

The following files/features are deprecated
Currently all deprecations are removed due to alpha state.
- CssClassMixin
- DomHelpersMixin (only $$id, $$slot is deprecated)
- ElementMixin
- EventMixin
- ObserverMixin
- lit-html.js
## Deduping of mixins

@@ -26,0 +19,0 @@

@@ -13,3 +13,3 @@ /* eslint-disable class-methods-use-this */

* ...super.delegations,
* target: () => this.$id('button1'),
* target: () => this.shadowRoot.getElementById('button1'),
* events: ['click'],

@@ -16,0 +16,0 @@ * methods: ['click'],

/* eslint-disable class-methods-use-this */
import { dedupeMixin } from './dedupeMixin.js';
import { DomHelpersMixin } from './DomHelpersMixin.js';

@@ -31,3 +30,3 @@ /**

// eslint-disable-next-line no-unused-vars, no-shadow
class SlotMixin extends DomHelpersMixin(superclass) {
class SlotMixin extends superclass {
/**

@@ -58,3 +57,3 @@ * @returns {{}}

Object.keys(this.slots).forEach(slotName => {
if (!this.$$slot(slotName)) {
if (!this.querySelector(`[slot=${slotName}]`)) {
const slotFactory = this.slots[slotName];

@@ -61,0 +60,0 @@ const slotContent = slotFactory();

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