Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Derby 2 #612

Merged
merged 48 commits into from
Dec 12, 2022
Merged

Derby 2 #612

merged 48 commits into from
Dec 12, 2022

Conversation

craigbeck
Copy link
Contributor

@craigbeck craigbeck commented Dec 12, 2022

Derby 2 extracts bundler code into separate bundler packages to be able to integrate new bundlers (e.g. webpack)

The browserify bundler has been broken out to derby-browserify package and should be included in an app as a plugin like so:

import derby from 'derby';
import bundler from 'derby-browserify';

const app = derby.createApp('myApp');
app.use(bundler);

craigbeck and others added 30 commits October 3, 2022 15:57
Use eslint instead of jshint
Fix binding binding.eventmodels initialization
Add behavioral test for binding bug with view function calls on array items
lib/App.js Outdated
@@ -91,6 +104,27 @@ App.prototype._finishInit = function() {
}
this.emit('load', page);
};

App.prototype._isAttached = function isInitialized() {
const { attached } = globalThis.APPS.get(this.name);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For now, let's stick with ES5 syntax for consistency with the existing code.

  • const -> var
  • No object destructuring

lib/App.js Outdated
}

App.prototype._initialState = function initialState() {
const { initialState } = globalThis.APPS.get(this.name);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same as above, stick with ES5 syntax for now

@craigbeck craigbeck merged commit 48c89f8 into master Dec 12, 2022
@craigbeck craigbeck deleted the derby-2 branch December 12, 2022 21:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants