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

@gojijs/core

Package Overview
Dependencies
Maintainers
3
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@gojijs/core - npm Package Compare versions

Comparing version 0.3.4 to 0.3.5

dist/cjs/subtree.d.ts

3

dist/cjs/constants.d.ts

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

export declare const GOJI_ROOT_VDOM = "$$GOJI_ROOT_VDOM";
export declare const GOJI_METHOD = "$$GOJI_METHOD";
export declare const TYPE_TEXT = "GOJI_TYPE_TEXT";
export declare const TYPE_SUBTREE = "GOJI_TYPE_SUBTREE";
interface SimplifyComponent {

@@ -5,0 +4,0 @@ name: string;

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.GOJI_ROOT_VDOM = '$$GOJI_ROOT_VDOM';
exports.GOJI_METHOD = '$$GOJI_METHOD';
exports.TYPE_TEXT = 'GOJI_TYPE_TEXT';
exports.TYPE_SUBTREE = 'GOJI_TYPE_SUBTREE';
exports.SIMPLIFY_COMPONENTS = [

@@ -7,0 +6,0 @@ {

/// <reference types="react" />
import { FiberRoot } from 'react-reconciler';
import { GOJI_ROOT_VDOM } from './constants';
import { LifecycleName } from './lifecycles';

@@ -14,3 +13,3 @@ import { AdaptorInstance } from './adaptor';

export declare class Container extends BasedContainer {
[GOJI_ROOT_VDOM]: Array<ElementInstance | TextInstance>;
rootDOM: Array<ElementInstance | TextInstance>;
fiberRootContainer?: FiberRoot;

@@ -17,0 +16,0 @@ requestUpdate(): void;

"use strict";
var _a;
Object.defineProperty(exports, "__esModule", { value: true });
"use strict";
const constants_1 = require("./constants");
const render_1 = require("./render");

@@ -39,6 +36,6 @@ const getGlobalVariable = () => {

super(...arguments);
this[_a] = [];
this.rootDOM = [];
}
requestUpdate() {
const children_ = this[constants_1.GOJI_ROOT_VDOM].map(child => child.pure());
const children_ = this.rootDOM.map(child => child.pure());
const startTime = new Date().getTime();

@@ -83,3 +80,2 @@ this.adaptorInstance.updateData({

exports.Container = Container;
_a = constants_1.GOJI_ROOT_VDOM;
//# sourceMappingURL=container.js.map

@@ -11,3 +11,2 @@ "use strict";

const scheduler = __importStar(require("scheduler"));
const constants_1 = require("./constants");
const instance_1 = require("./instance");

@@ -58,3 +57,3 @@ const { unstable_scheduleCallback: scheduleDeferredCallback, unstable_cancelCallback: cancelDeferredCallback, unstable_shouldYield: shouldYield, unstable_now: now, } = scheduler;

insertInContainerBefore(container, child, beforeChild) {
container[constants_1.GOJI_ROOT_VDOM].splice(container[constants_1.GOJI_ROOT_VDOM].indexOf(beforeChild), 0, child);
container.rootDOM.splice(container.rootDOM.indexOf(beforeChild), 0, child);
},

@@ -66,3 +65,3 @@ finalizeInitialChildren: () => {

appendChildToContainer(container, child) {
container[constants_1.GOJI_ROOT_VDOM].push(child);
container.rootDOM.push(child);
},

@@ -75,3 +74,3 @@ removeChild(parentInstance, child) {

child.unregisterEventHandler(true);
container[constants_1.GOJI_ROOT_VDOM].splice(container[constants_1.GOJI_ROOT_VDOM].indexOf(child), 1);
container.rootDOM.splice(container.rootDOM.indexOf(child), 1);
},

@@ -78,0 +77,0 @@ // @ts-ignore

@@ -9,3 +9,4 @@ /// <reference types="react" />

export * from './factoryComponents';
export { Subtree } from './subtree';
export * from './lifecycles';
export { SIMPLIFY_COMPONENTS as unstable_SIMPLIFY_COMPONENTS } from './constants';

@@ -22,2 +22,4 @@ "use strict";

__export(require("./factoryComponents"));
var subtree_1 = require("./subtree");
exports.Subtree = subtree_1.Subtree;
__export(require("./lifecycles"));

@@ -24,0 +26,0 @@ // eslint-disable-next-line camelcase

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

export declare const GOJI_ROOT_VDOM = "$$GOJI_ROOT_VDOM";
export declare const GOJI_METHOD = "$$GOJI_METHOD";
export declare const TYPE_TEXT = "GOJI_TYPE_TEXT";
export declare const TYPE_SUBTREE = "GOJI_TYPE_SUBTREE";
interface SimplifyComponent {

@@ -5,0 +4,0 @@ name: string;

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

export const GOJI_ROOT_VDOM = '$$GOJI_ROOT_VDOM';
export const GOJI_METHOD = '$$GOJI_METHOD';
export const TYPE_TEXT = 'GOJI_TYPE_TEXT';
export const TYPE_SUBTREE = 'GOJI_TYPE_SUBTREE';
export const SIMPLIFY_COMPONENTS = [

@@ -5,0 +4,0 @@ {

/// <reference types="react" />
import { FiberRoot } from 'react-reconciler';
import { GOJI_ROOT_VDOM } from './constants';
import { LifecycleName } from './lifecycles';

@@ -14,3 +13,3 @@ import { AdaptorInstance } from './adaptor';

export declare class Container extends BasedContainer {
[GOJI_ROOT_VDOM]: Array<ElementInstance | TextInstance>;
rootDOM: Array<ElementInstance | TextInstance>;
fiberRootContainer?: FiberRoot;

@@ -17,0 +16,0 @@ requestUpdate(): void;

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

var _a;
import { GOJI_ROOT_VDOM } from './constants';
import { internalRender } from './render';

@@ -35,6 +33,6 @@ const getGlobalVariable = () => {

super(...arguments);
this[_a] = [];
this.rootDOM = [];
}
requestUpdate() {
const children_ = this[GOJI_ROOT_VDOM].map(child => child.pure());
const children_ = this.rootDOM.map(child => child.pure());
const startTime = new Date().getTime();

@@ -78,3 +76,2 @@ this.adaptorInstance.updateData({

}
_a = GOJI_ROOT_VDOM;
//# sourceMappingURL=container.js.map
import * as scheduler from 'scheduler';
import { GOJI_ROOT_VDOM } from './constants';
import { ElementInstance, TextInstance } from './instance';

@@ -48,3 +47,3 @@ const { unstable_scheduleCallback: scheduleDeferredCallback, unstable_cancelCallback: cancelDeferredCallback, unstable_shouldYield: shouldYield, unstable_now: now, } = scheduler;

insertInContainerBefore(container, child, beforeChild) {
container[GOJI_ROOT_VDOM].splice(container[GOJI_ROOT_VDOM].indexOf(beforeChild), 0, child);
container.rootDOM.splice(container.rootDOM.indexOf(beforeChild), 0, child);
},

@@ -56,3 +55,3 @@ finalizeInitialChildren: () => {

appendChildToContainer(container, child) {
container[GOJI_ROOT_VDOM].push(child);
container.rootDOM.push(child);
},

@@ -65,3 +64,3 @@ removeChild(parentInstance, child) {

child.unregisterEventHandler(true);
container[GOJI_ROOT_VDOM].splice(container[GOJI_ROOT_VDOM].indexOf(child), 1);
container.rootDOM.splice(container.rootDOM.indexOf(child), 1);
},

@@ -68,0 +67,0 @@ // @ts-ignore

@@ -9,3 +9,4 @@ /// <reference types="react" />

export * from './factoryComponents';
export { Subtree } from './subtree';
export * from './lifecycles';
export { SIMPLIFY_COMPONENTS as unstable_SIMPLIFY_COMPONENTS } from './constants';

@@ -17,2 +17,3 @@ import { Container } from './container';

export * from './factoryComponents';
export { Subtree } from './subtree';
export * from './lifecycles';

@@ -19,0 +20,0 @@ // eslint-disable-next-line camelcase

{
"name": "@gojijs/core",
"version": "0.3.4",
"version": "0.3.5",
"description": "Goji Core",

@@ -78,3 +78,3 @@ "main": "dist/cjs/index.js",

},
"gitHead": "a02afa38d9c02ee05d71e5d9436dd244a0833fd3"
"gitHead": "c1eeafcd0a192f09591ff204c0b9cb3fb197680e"
}

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

export const GOJI_ROOT_VDOM = '$$GOJI_ROOT_VDOM';
export const GOJI_METHOD = '$$GOJI_METHOD';
export const TYPE_TEXT = 'GOJI_TYPE_TEXT';
export const TYPE_SUBTREE = 'GOJI_TYPE_SUBTREE';

@@ -5,0 +4,0 @@ interface SimplifyComponent {

import { FiberRoot } from 'react-reconciler';
import { GOJI_ROOT_VDOM } from './constants';
import { LifecycleWrapper, LifecycleName } from './lifecycles';

@@ -45,3 +44,3 @@ import { AdaptorInstance } from './adaptor';

export class Container extends BasedContainer {
public [GOJI_ROOT_VDOM]: Array<ElementInstance | TextInstance> = [];
public rootDOM: Array<ElementInstance | TextInstance> = [];

@@ -51,3 +50,3 @@ public fiberRootContainer?: FiberRoot;

public requestUpdate() {
const children_ = this[GOJI_ROOT_VDOM].map(child => child.pure());
const children_ = this.rootDOM.map(child => child.pure());

@@ -54,0 +53,0 @@ const startTime = new Date().getTime();

import * as scheduler from 'scheduler';
import { HostConfig } from 'react-reconciler';
import { GOJI_ROOT_VDOM } from './constants';
import { Container } from './container';

@@ -85,3 +84,3 @@ import { InstanceProps, ElementInstance, TextInstance } from './instance';

insertInContainerBefore(container, child, beforeChild) {
container[GOJI_ROOT_VDOM].splice(container[GOJI_ROOT_VDOM].indexOf(beforeChild), 0, child);
container.rootDOM.splice(container.rootDOM.indexOf(beforeChild), 0, child);
},

@@ -96,3 +95,3 @@

appendChildToContainer(container, child) {
container[GOJI_ROOT_VDOM].push(child);
container.rootDOM.push(child);
},

@@ -107,3 +106,3 @@

child.unregisterEventHandler(true);
container[GOJI_ROOT_VDOM].splice(container[GOJI_ROOT_VDOM].indexOf(child), 1);
container.rootDOM.splice(container.rootDOM.indexOf(child), 1);
},

@@ -110,0 +109,0 @@

@@ -25,4 +25,5 @@ import { Container } from './container';

export * from './factoryComponents';
export { Subtree } from './subtree';
export * from './lifecycles';
// eslint-disable-next-line camelcase
export { SIMPLIFY_COMPONENTS as unstable_SIMPLIFY_COMPONENTS } from './constants';

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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