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

bobril

Package Overview
Dependencies
Maintainers
1
Versions
315
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bobril - npm Package Compare versions

Comparing version 17.13.1 to 18.0.0

5

CHANGELOG.md
# CHANGELOG
## 18.0.0
Removed compatibility with IE11 and old Edge.
Removed definition of `Thenable<T>` replace by `PromiseLike<T>` if you used it.
## 17.13.1

@@ -4,0 +9,0 @@

1

index.ts

@@ -1,2 +0,1 @@

import "./src/ie11";
export * from "./src/isFunc";

@@ -3,0 +2,0 @@ export * from "./src/asap";

{
"name": "bobril",
"version": "17.13.1",
"version": "18.0.0",
"description": "Component Oriented MVC Framework with virtual DOM and CSS",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -40,3 +40,3 @@ ![Bobril Logo](https://raw.githubusercontent.com/Bobris/Bobril/master/logo.png)

- Normalization of Events
- support for IE11 and evergreen browsers
- support for evergreen browsers
- batching of redrawing

@@ -56,5 +56,5 @@ - any html element could be root

- Transparently add vendor prefixes for inline styles
- Asap (setImmediate) and Promise A+ polyfill - simplified https://github.com/taylorhakes/setAsap and https://github.com/taylorhakes/promise-polyfill
- Asap (setImmediate)
- Scroll notification
- Drag and Drop - uses browser one except on IE11, multi touch, allows animating drag, state of the art as usual
- Drag and Drop - multi touch, allows animating drag, state of the art as usual
- Style - create css dynamically for even faster speed, allow recomputing styles for theming

@@ -61,0 +61,0 @@ - PNG Sprites with dynamic change of color

@@ -1,3 +0,1 @@

export type Thenable<T> = PromiseLike<T>;
export const asap = (() => {

@@ -14,28 +12,8 @@ var callbacks: Array<() => void> = [];

// Mainly IE11, fastest async
if ((<any>window).MutationObserver) {
var hiddenDiv = document.createElement("div");
new MutationObserver(executeCallbacks).observe(hiddenDiv, {
attributes: true,
});
return (callback: () => void) => {
if (!callbacks.length) {
hiddenDiv.setAttribute("yes", "no");
}
callbacks.push(callback);
};
// All other browsers
} else {
var timeout: number | undefined;
var timeoutFn: (cb: () => void, timeout: number) => number = (window as any).setImmediate || setTimeout;
return (callback: () => void) => {
callbacks.push(callback);
if (!timeout) {
timeout = timeoutFn(() => {
timeout = undefined;
executeCallbacks();
}, 0);
}
};
}
return (callback: () => void) => {
callbacks.push(callback);
if (callbacks.length === 1) {
Promise.resolve().then(executeCallbacks);
}
};
})();

@@ -23,3 +23,3 @@ import { CSSStyles, CSSPseudoStyles, CSSStylesItem, CSSInlineStyles } from "./cssTypes";

const vendors = ["Webkit", "Moz", "ms", "O"];
const vendors = ["Webkit", "Moz", "O"];
const testingDivStyle: any = document.createElement("div").style;

@@ -578,4 +578,2 @@ function testPropExistence(name: string) {

const uppercasePattern = /([A-Z])/g;
const msPattern = /^ms-/;
const hyphenateCache = new Map([["cssFloat", "float"]]);

@@ -586,3 +584,3 @@

if (res === undefined) {
res = s.replace(uppercasePattern, "-$1").toLowerCase().replace(msPattern, "-ms-");
res = s.replace(uppercasePattern, "-$1").toLowerCase();
hyphenateCache.set(s, res);

@@ -589,0 +587,0 @@ }

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