Code Monkey home page Code Monkey logo

capsid's People

Contributors

dependabot[bot] avatar greenkeeper[bot] avatar greenkeeperio-bot avatar kt3k avatar leodog896 avatar whathejoe avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

capsid's Issues

An in-range update of @types/node is breaking the build 🚨

The devDependency @types/node was updated from 11.9.0 to 11.9.1.

🚨 View failing branch.

This version is covered by your current version range and after updating it in your project the build failed.

@types/node is a devDependency of this project. It might not break your production code or affect downstream projects, but probably breaks your build or test tools, which may prevent deploying or publishing.

Status Details
  • ci/circleci: Your tests failed on CircleCI (Details).

FAQ and help

There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.


Your Greenkeeper Bot 🌴

unmount

  • we need unmount API

Use case

@component('pure')
class Pure {
  @on('input')
  @on('change')
  inpure () {
    unmount('pure', this.el)
  }
}

Implementation is something like:

el.classList.remove(classnName)
listeners.forEach(listener => el.removeEventListener(listener.event, listener))

An in-range update of babel7 is breaking the build 🚨

There have been updates to the babel7 monorepo:

    • The devDependency @babel/core was updated from 7.4.5 to 7.5.0.

🚨 View failing branch.

This version is covered by your current version range and after updating it in your project the build failed.

This monorepo update includes releases of one or more dependencies which all belong to the babel7 group definition.

babel7 is a devDependency of this project. It might not break your production code or affect downstream projects, but probably breaks your build or test tools, which may prevent deploying or publishing.

Status Details
  • ci/circleci: Your tests failed on CircleCI (Details).

FAQ and help

There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.


Your Greenkeeper Bot 🌴

An in-range update of lint-staged is breaking the build 🚨

The devDependency lint-staged was updated from 7.2.2 to 7.3.0.

🚨 View failing branch.

This version is covered by your current version range and after updating it in your project the build failed.

lint-staged is a devDependency of this project. It might not break your production code or affect downstream projects, but probably breaks your build or test tools, which may prevent deploying or publishing.

Status Details
  • ci/circleci: Your tests failed on CircleCI (Details).

Release Notes for v7.3.0

7.3.0 (2018-09-20)

Features

  • Allow linting files outside of project folder (#495) (d386c80)
Commits

The new version differs by 1 commits.

  • d386c80 feat: Allow linting files outside of project folder (#495)

See the full diff

FAQ and help

There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.


Your Greenkeeper Bot 🌴

The Mounting Rule

How does capsid component mount to the dom element?

Component Name === Dom Class Name

  • Every component have to have component name.
  • Component Name must be valid html element's class name.
  • When the page is loaded (i.e. DOMContentLoaded), html elements which have a class name which is the same as a component name will be mounted by the corresponding component class.

An in-range update of karma is breaking the build 🚨

The devDependency karma was updated from 3.1.1 to 3.1.2.

🚨 View failing branch.

This version is covered by your current version range and after updating it in your project the build failed.

karma is a devDependency of this project. It might not break your production code or affect downstream projects, but probably breaks your build or test tools, which may prevent deploying or publishing.

Status Details
  • ci/circleci: Your tests failed on CircleCI (Details).

Release Notes for v3.1.2

Bug Fixes

Features

Commits

The new version differs by 11 commits.

  • 7d4d347 chore: release v3.1.2
  • 5077c18 chore: update contributors
  • fb05fb1 fix(server): use flatted for json.stringify (#3220)
  • 2682bff feat(docs): callout the key debug strategies. (#3219)
  • 4e87902 fix(changelog): remove release which does not exist (#3214)
  • 30ff73b fix(browser): report errors to console during singleRun=false (#3209)
  • 5334d1a fix(file-list): do not preprocess up-to-date files (#3196)
  • dc5f5de fix(deps): upgrade sinon-chai 2.x -> 3.x (#3207)
  • d38f344 fix(package): bump lodash version (#3203)
  • ffb41f9 refactor(browser): log state transitions in debug (#3202)
  • 240209f fix(dep): Bump useragent to fix HeadlessChrome version (#3201)

See the full diff

FAQ and help

There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.


Your Greenkeeper Bot 🌴

New slogan and arragement

  • Declarative (real) dom programming
    • declare dom hierarchy by @wire
    • declare event handling by @on
    • declare components by @component
    • declare event emission by @emit

Switch to TypeScript decorator

  • TypeScript decorator is the only one decorator which is now more or less reliable.
  • ES decorator doesn't seem going to be settled in near future. (maybe never)

`@notify` decorator

syntax

class Foo {
  @notify(EVENT_MODEL_UPDATE, '.is-model-update-observer')
  notifyModelUpdate () {
    return this.models
  }
}

semantics:

  • the decorated method notifies the given event to the elements of the given selector
  • returned value becomes detail of the event
  • if promise is given then the resolved value becomes detail of the event. In this case, events fire when the promise resolved.
  • events' bubbles option is false.

Guide

first guide of capsid.js

  • How to set up the dev environment. TypeScript + Parcel is the best choice.
    • We don't support non-TypeScript environment anymore because without typescript decorators, capsid doesn't make any sense.
  • First step is create click handler
    • fetching items from click handler may be a good starting point.
  • We should mention about lifecycle and initialization timing much later point because that's not necessary at start.

@is decorator

@component('js-item')
@is(MODEL_OBSERVER)
class Item {
}

is the same as:

@component('js-item')
class Item {
  __init__ () {
    make(MODEL_OBSERVER, this.el) // when MODEL_OBSERVER is a component name
    ...or
    mount(MODEL_OBSERVER, this.el) // when MODEL_OBSERVER is a Function
    ...or
    this.el.classList.add(MODEL_OBSERVER) // when MODEL_OBSERVER is a class name and not a component name
  }
}

rename decorators

  • @on -> @on
  • @emit -> @emits
  • @pub -> scatters, broadcasts, notifies*
  • @component -> @component
  • @wire -> @wired

Document Exporting of capsid component

  • component author shouldn't directly use component or def APIs
  • component author should export factory functions for components
  • they can have default names, but they should be cofigurable at creation time.

document lifecycle of component

  • When the component first mounted
  • When the event listeners defined by @on bind to elements
  • When init is called
  • When constructors are called
  • The diagram of the above

document capsid way

  • don't touch other components directly, instead throw events to them.
    • if you want to deliver information to an ancestor, then use @emits decorator and it will propagate to it.
    • if you want to deliver information to a descendant, then use @notifies decorator and it will find the targets and notify them.

Reorganize examples

  • First need to switch everything to TypeScript.
  • Hello example is not a basic example because it uses mount lifecycle. It's an advanced example.
  • The more basic example should have only one event handler and no lifecycle method.
    • like a simple button.

An in-range update of browserify is breaking the build 🚨

The devDependency browserify was updated from 16.2.3 to 16.3.0.

🚨 View failing branch.

This version is covered by your current version range and after updating it in your project the build failed.

browserify is a devDependency of this project. It might not break your production code or affect downstream projects, but probably breaks your build or test tools, which may prevent deploying or publishing.

Status Details
  • ci/circleci: Your tests failed on CircleCI (Details).

Commits

The new version differs by 8 commits.

  • 9824fae 16.3.0
  • 9e3397b Add http2 to builtins (#1913)
  • d2ade25 Add http2 to builtins
  • 876182d Tweak license text so Github detects it correctly
  • 16f82a7 Update license (#1906)
  • 7ad39ce Merge pull request #1139 from insidewarehouse/resolve-exposed-folders
  • f13b713 when a module is exposed, it should still resolve the way it would normally do, i.e. with/without extension and directories should fall back to index, and index from a directory should be accepted with/without extension too
  • 8f80729 Update license

See the full diff

FAQ and help

There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.


Your Greenkeeper Bot 🌴

An in-range update of lynt is breaking the build 🚨

The devDependency lynt was updated from 0.5.4 to 0.5.5.

🚨 View failing branch.

This version is covered by your current version range and after updating it in your project the build failed.

lynt is a devDependency of this project. It might not break your production code or affect downstream projects, but probably breaks your build or test tools, which may prevent deploying or publishing.

Status Details
  • ci/circleci: Your tests failed on CircleCI (Details).

FAQ and help

There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.


Your Greenkeeper Bot 🌴

@wire.el decorator

Syntax

@component
class MyComponent {
  @wire.el(selector) get fooElement () {}

  doSomething () {
    this.fooElement.classList.add('is-something')
  }
}

fooElement wires to this.el.querySelector(selector).

Coverage 100%

  • Coverage was once 100%, but now it decreased to 90%. Make it 100% again.

Separate documents of basic APIs and advanced APIs

  • You usually need only decorators for building an app. wired, component, on, emits, notifies
  • Other APIs are advanced ones. It should be placed in reference area, should not be mentioned in getting started section.
  • The lifecycle need to be mentioned in getting started guide.

`@wired` decorator

Replace @wire decorator by @wired.

The current plan of variations of @wired

  • @wired(selector) = @wire.el(selector)
  • @wired.all(selector) = @wire.elAll()
  • @wired.component = @wire
  • @wired.component.all = wires the all components.
  • @wired.$el(selector) = @wire.$el(selector)

An in-range update of codecov is breaking the build 🚨

The devDependency codecov was updated from 3.1.0 to 3.2.0.

🚨 View failing branch.

This version is covered by your current version range and after updating it in your project the build failed.

codecov is a devDependency of this project. It might not break your production code or affect downstream projects, but probably breaks your build or test tools, which may prevent deploying or publishing.

Status Details
  • ci/circleci: Your tests failed on CircleCI (Details).

Commits

The new version differs by 3 commits.

  • e427d90 feat(services): add azure pipelines (#114)
  • 023d204 Use small HTTP dependency (#110)
  • 500f308 Update Readme

See the full diff

FAQ and help

There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.


Your Greenkeeper Bot 🌴

An in-range update of watchify is breaking the build 🚨

The devDependency watchify was updated from 3.11.0 to 3.11.1.

🚨 View failing branch.

This version is covered by your current version range and after updating it in your project the build failed.

watchify is a devDependency of this project. It might not break your production code or affect downstream projects, but probably breaks your build or test tools, which may prevent deploying or publishing.

Status Details
  • ci/circleci: Your tests failed on CircleCI (Details).

Commits

The new version differs by 8 commits.

  • c3fe218 3.11.1
  • e90101b Merge pull request #362 from digipost/upgrade-deps
  • d163b4f upgrade dependencies: fix errors from npm audit
  • 1917270 Merge pull request #351 from menzow/feature/update-docs
  • d232754 Merge pull request #357 from Kamil93/patch-1
  • d924e9b Update readme.markdown
  • 9ea8a65 Support for working with transforms
  • 8147bc5 Add troubleshooting information for silenced errors

See the full diff

FAQ and help

There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.


Your Greenkeeper Bot 🌴

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.