Skip to content

Commit

Permalink
Merge branch 'main' of https://github.com/knockout/tko
Browse files Browse the repository at this point in the history
  • Loading branch information
danieldickison committed May 24, 2022
2 parents 8e566f4 + d5d32eb commit 3b54fb1
Show file tree
Hide file tree
Showing 37 changed files with 181 additions and 192 deletions.
5 changes: 3 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
For TODO between alpha and release, see https://github.com/knockout/tko/issues/1

## upcoming
## Beta1.2

- replace `objectLookup` with `Map` in `toJS` for O(n) instead of O(n²) computational complexity (#170 @felipesantoz)
- fix equality comparison for select option values (#155/#163 @danieldickison)
- fix identifier set_value in parser (#157/#161 @danieldickison)
- remove mustache from text/attr bindings by default (#156 @danieldickison)
- knockout function rewrite improvements (#156 @danieldickison)
- change parsing algorithm to Shunting Yard (#151 @danieldickison)
- Switch to `esbuild`
- Switch to `esbuild` (likely breaks existing imports/require/etc)
- add `preventDefault` to event handler bindings
- switch source to Typescript (but no types exported yet)
- change build.reference & build.knockout build export strategy
Expand Down
6 changes: 5 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -28,15 +28,18 @@ ci:
lint:
$(NPX) standard

# Run the `repackage` target in every directory. Essentially
# homogenizes the `package.json`.
repackage: tools/repackage.mjs
$(LERNA) exec --stream -- $(MAKE) repackage

# Run to update the versions of all the package.json files, before publishing.
bump:
$(LERNA) version

# from-git "identify packages tagged by lerna version and publish them to npm."
# from-package "packages where the latest version is not present in the registry"
publish-unpublished: build
publish-unpublished: all link
$(LERNA) publish from-package

package-lock.json: package.json packages/*/package.json
Expand All @@ -55,6 +58,7 @@ outdated-upgrade:
install: package-lock.json

clean:
rm -rf node_modules/
rm -f package-lock.json
rm -rf packages/*/dist/*
rm -rf packages/*/package-lock.json
Expand Down
3 changes: 0 additions & 3 deletions builds/knockout/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,6 @@ include ../../tools/build.mk

iife-global-name := ko

test:
@echo "Disabled pending fixes to build process"

default::
$(MAKE) browser

34 changes: 17 additions & 17 deletions builds/knockout/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": "4.0.0-alpha9.0",
"version": "4.0.0-beta1.1",
"name": "@tko/build.knockout",
"description": "Knockout makes it easier to create rich, responsive UIs with JavaScript",
"homepage": "https://tko.io",
Expand Down Expand Up @@ -46,27 +46,27 @@
}
],
"dependencies": {
"@tko/binding.component": "^4.0.0-alpha9.0",
"@tko/binding.core": "^4.0.0-alpha9.0",
"@tko/binding.foreach": "^4.0.0-alpha9.0",
"@tko/binding.if": "^4.0.0-alpha9.0",
"@tko/binding.template": "^4.0.0-alpha9.0",
"@tko/builder": "^4.0.0-alpha9.0",
"@tko/filter.punches": "^4.0.0-alpha8.0",
"@tko/provider.attr": "^4.0.0-alpha8.4",
"@tko/provider.bindingstring": "^4.0.0-alpha9.0",
"@tko/provider.component": "^4.0.0-alpha9.0",
"@tko/provider.databind": "^4.0.0-alpha9.0",
"@tko/provider.multi": "^4.0.0-alpha8.4",
"@tko/provider.virtual": "^4.0.0-alpha9.0",
"@tko/utils.component": "^4.0.0-alpha9.0",
"@tko/utils.functionrewrite": "^4.0.0-alpha8.2",
"@tko/binding.component": "^4.0.0-beta1.0",
"@tko/binding.core": "^4.0.0-beta1.0",
"@tko/binding.foreach": "^4.0.0-beta1.0",
"@tko/binding.if": "^4.0.0-beta1.0",
"@tko/binding.template": "^4.0.0-beta1.0",
"@tko/builder": "^4.0.0-beta1.0",
"@tko/filter.punches": "^4.0.0-beta1.0",
"@tko/provider.attr": "^4.0.0-beta1.0",
"@tko/provider.bindingstring": "^4.0.0-beta1.0",
"@tko/provider.component": "^4.0.0-beta1.0",
"@tko/provider.databind": "^4.0.0-beta1.0",
"@tko/provider.multi": "^4.0.0-beta1.0",
"@tko/provider.virtual": "^4.0.0-beta1.0",
"@tko/utils.component": "^4.0.0-beta1.0",
"@tko/utils.functionrewrite": "^4.0.0-beta1.0",
"tslib": "^2.2.0"
},
"exports": {
".": {
"require": "./dist/index.cjs",
"import": "./dist/index.js"
"import": "./dist/index.mjs"
},
"./helpers/*": "./helpers/*"
}
Expand Down
2 changes: 1 addition & 1 deletion builds/knockout/spec/crossWindowBehaviors.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@

import { dummyTemplateEngine } from "./templatingBehaviors";

describe('Cross-window support', function() {
it('Should work in another window', function () {
Expand Down
2 changes: 1 addition & 1 deletion builds/knockout/spec/templatingBehaviors.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

var dummyTemplateEngine = function (templates) {
export var dummyTemplateEngine = function (templates) {
var inMemoryTemplates = templates || {};
var inMemoryTemplateData = {};

Expand Down
File renamed without changes.
38 changes: 19 additions & 19 deletions builds/reference/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": "4.0.0-alpha9.0",
"version": "4.0.0-beta1.1",
"name": "@tko/build.reference",
"description": "The TKO Reference Build",
"repository": {
Expand All @@ -15,23 +15,23 @@
},
"license": "MIT",
"dependencies": {
"@tko/binding.component": "^4.0.0-alpha9.0",
"@tko/binding.core": "^4.0.0-alpha9.0",
"@tko/binding.foreach": "^4.0.0-alpha9.0",
"@tko/binding.if": "^4.0.0-alpha9.0",
"@tko/binding.template": "^4.0.0-alpha9.0",
"@tko/builder": "^4.0.0-alpha9.0",
"@tko/filter.punches": "^4.0.0-alpha8.0",
"@tko/provider.attr": "^4.0.0-alpha8.4",
"@tko/provider.bindingstring": "^4.0.0-alpha9.0",
"@tko/provider.component": "^4.0.0-alpha9.0",
"@tko/provider.databind": "^4.0.0-alpha9.0",
"@tko/provider.multi": "^4.0.0-alpha8.4",
"@tko/provider.mustache": "^4.0.0-alpha9.0",
"@tko/provider.native": "^4.0.0-alpha8.4a",
"@tko/provider.virtual": "^4.0.0-alpha9.0",
"@tko/utils.component": "^4.0.0-alpha9.0",
"@tko/utils.jsx": "^4.0.0-alpha9.0",
"@tko/binding.component": "^4.0.0-beta1.0",
"@tko/binding.core": "^4.0.0-beta1.0",
"@tko/binding.foreach": "^4.0.0-beta1.0",
"@tko/binding.if": "^4.0.0-beta1.0",
"@tko/binding.template": "^4.0.0-beta1.0",
"@tko/builder": "^4.0.0-beta1.0",
"@tko/filter.punches": "^4.0.0-beta1.0",
"@tko/provider.attr": "^4.0.0-beta1.0",
"@tko/provider.bindingstring": "^4.0.0-beta1.0",
"@tko/provider.component": "^4.0.0-beta1.0",
"@tko/provider.databind": "^4.0.0-beta1.0",
"@tko/provider.multi": "^4.0.0-beta1.0",
"@tko/provider.mustache": "^4.0.0-beta1.0",
"@tko/provider.native": "^4.0.0-beta1.0",
"@tko/provider.virtual": "^4.0.0-beta1.0",
"@tko/utils.component": "^4.0.0-beta1.0",
"@tko/utils.jsx": "^4.0.0-beta1.0",
"tslib": "^2.2.0"
},
"files": [
Expand All @@ -48,7 +48,7 @@
"exports": {
".": {
"require": "./dist/index.cjs",
"import": "./dist/index.js"
"import": "./dist/index.mjs"
},
"./helpers/*": "./helpers/*"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import { bindings as componentBindings } from '@tko/binding.component'
import { filters } from '@tko/filter.punches'

import components from '@tko/utils.component'
import { createElement, Fragment } from 'utils.jsx'
import { createElement, Fragment } from '@tko/utils.jsx'

const builder = new Builder({
filters,
Expand Down
2 changes: 1 addition & 1 deletion lerna.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"useWorkspaces": true,
"version": "4.0.0-alpha9.0",
"version": "4.0.0-beta1.1",
"lerna": "4.0.0"
}
12 changes: 6 additions & 6 deletions packages/bind/package.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
{
"version": "4.0.0-alpha9.0",
"version": "4.0.0-beta1.0",
"name": "@tko/bind",
"description": "TKO DOM-Observable Binding",
"module": "dist/bind.js",
"dependencies": {
"@tko/computed": "^4.0.0-alpha8.0",
"@tko/lifecycle": "^4.0.0-alpha9.0",
"@tko/observable": "^4.0.0-alpha8.0",
"@tko/provider": "^4.0.0-alpha8.4",
"@tko/utils": "^4.0.0-alpha8.0",
"@tko/computed": "^4.0.0-beta1.0",
"@tko/lifecycle": "^4.0.0-beta1.0",
"@tko/observable": "^4.0.0-beta1.0",
"@tko/provider": "^4.0.0-beta1.0",
"@tko/utils": "^4.0.0-beta1.0",
"tslib": "^2.2.0"
},
"peerDependencies": {
Expand Down
16 changes: 8 additions & 8 deletions packages/binding.component/package.json
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
{
"version": "4.0.0-alpha9.0",
"version": "4.0.0-beta1.0",
"name": "@tko/binding.component",
"description": "component: binding for web components",
"module": "dist/binding.component.js",
"license": "MIT",
"dependencies": {
"@tko/bind": "^4.0.0-alpha9.0",
"@tko/lifecycle": "^4.0.0-alpha9.0",
"@tko/observable": "^4.0.0-alpha8.0",
"@tko/provider": "^4.0.0-alpha8.4",
"@tko/utils": "^4.0.0-alpha8.0",
"@tko/utils.jsx": "^4.0.0-alpha8.0",
"@tko/utils.component": "^4.0.0-alpha9.0",
"@tko/bind": "^4.0.0-beta1.0",
"@tko/lifecycle": "^4.0.0-beta1.0",
"@tko/observable": "^4.0.0-beta1.0",
"@tko/provider": "^4.0.0-beta1.0",
"@tko/utils": "^4.0.0-beta1.0",
"@tko/utils.component": "^4.0.0-beta1.0",
"@tko/utils.jsx": "^4.0.0-beta1.0",
"tslib": "^2.2.0"
},
"files": [
Expand Down
12 changes: 6 additions & 6 deletions packages/binding.core/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": "4.0.0-alpha9.0",
"version": "4.0.0-beta1.0",
"name": "@tko/binding.core",
"description": "TKO Core bindings",
"module": "dist/binding.core.js",
Expand All @@ -23,10 +23,10 @@
},
"homepage": "https://tko.io",
"dependencies": {
"@tko/bind": "^4.0.0-alpha9.0",
"@tko/computed": "^4.0.0-alpha8.0",
"@tko/observable": "^4.0.0-alpha8.0",
"@tko/utils": "^4.0.0-alpha8.0",
"@tko/bind": "^4.0.0-beta1.0",
"@tko/computed": "^4.0.0-beta1.0",
"@tko/observable": "^4.0.0-beta1.0",
"@tko/utils": "^4.0.0-beta1.0",
"tslib": "^2.2.0"
},
"karma": {
Expand All @@ -47,4 +47,4 @@
},
"./helpers/*": "./helpers/*"
}
}
}
12 changes: 6 additions & 6 deletions packages/binding.foreach/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": "4.0.0-alpha9.0",
"version": "4.0.0-beta1.0",
"name": "@tko/binding.foreach",
"description": "Knockout Foreach Binding",
"module": "dist/binding.foreach.js",
Expand All @@ -23,10 +23,10 @@
},
"homepage": "https://tko.io",
"dependencies": {
"@tko/bind": "^4.0.0-alpha9.0",
"@tko/observable": "^4.0.0-alpha8.0",
"@tko/provider": "^4.0.0-alpha8.4",
"@tko/utils": "^4.0.0-alpha8.0",
"@tko/bind": "^4.0.0-beta1.0",
"@tko/observable": "^4.0.0-beta1.0",
"@tko/provider": "^4.0.0-beta1.0",
"@tko/utils": "^4.0.0-beta1.0",
"tslib": "^2.2.0"
},
"karma": {
Expand All @@ -49,4 +49,4 @@
},
"./helpers/*": "./helpers/*"
}
}
}
12 changes: 6 additions & 6 deletions packages/binding.if/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": "4.0.0-alpha9.0",
"version": "4.0.0-beta1.0",
"name": "@tko/binding.if",
"description": "TKO conditional (if/ifnot/unless/with/else) bindings",
"module": "dist/binding.if.js",
Expand All @@ -23,10 +23,10 @@
},
"homepage": "https://tko.io",
"dependencies": {
"@tko/bind": "^4.0.0-alpha9.0",
"@tko/computed": "^4.0.0-alpha8.0",
"@tko/observable": "^4.0.0-alpha8.0",
"@tko/utils": "^4.0.0-alpha8.0",
"@tko/bind": "^4.0.0-beta1.0",
"@tko/computed": "^4.0.0-beta1.0",
"@tko/observable": "^4.0.0-beta1.0",
"@tko/utils": "^4.0.0-beta1.0",
"tslib": "^2.2.0"
},
"karma": {
Expand All @@ -47,4 +47,4 @@
},
"./helpers/*": "./helpers/*"
}
}
}
10 changes: 5 additions & 5 deletions packages/binding.template/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": "4.0.0-alpha9.0",
"version": "4.0.0-beta1.0",
"name": "@tko/binding.template",
"description": "TKO Template bindings",
"module": "dist/binding.template.js",
Expand All @@ -23,10 +23,10 @@
},
"homepage": "https://tko.io",
"dependencies": {
"@tko/bind": "^4.0.0-alpha9.0",
"@tko/computed": "^4.0.0-alpha8.0",
"@tko/observable": "^4.0.0-alpha8.0",
"@tko/utils": "^4.0.0-alpha8.0",
"@tko/bind": "^4.0.0-beta1.0",
"@tko/computed": "^4.0.0-beta1.0",
"@tko/observable": "^4.0.0-beta1.0",
"@tko/utils": "^4.0.0-beta1.0",
"tslib": "^2.2.0"
},
"karma": {
Expand Down
16 changes: 8 additions & 8 deletions packages/builder/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": "4.0.0-alpha9.0",
"version": "4.0.0-beta1.0",
"name": "@tko/builder",
"description": "Compile a customized instance of Knockout.",
"repository": {
Expand All @@ -9,13 +9,13 @@
"author": "The Knockout Team",
"license": "MIT",
"dependencies": {
"@tko/bind": "^4.0.0-alpha9.0",
"@tko/computed": "^4.0.0-alpha8.0",
"@tko/filter.punches": "^4.0.0-alpha8.0",
"@tko/lifecycle": "^4.0.0-alpha9.0",
"@tko/observable": "^4.0.0-alpha8.0",
"@tko/utils": "^4.0.0-alpha8.0",
"@tko/utils.parser": "^4.0.0-alpha9.0",
"@tko/bind": "^4.0.0-beta1.0",
"@tko/computed": "^4.0.0-beta1.0",
"@tko/filter.punches": "^4.0.0-beta1.0",
"@tko/lifecycle": "^4.0.0-beta1.0",
"@tko/observable": "^4.0.0-beta1.0",
"@tko/utils": "^4.0.0-beta1.0",
"@tko/utils.parser": "^4.0.0-beta1.0",
"tslib": "^2.2.0"
},
"homepage": "https://tko.io",
Expand Down
Loading

0 comments on commit 3b54fb1

Please sign in to comment.