Code Monkey home page Code Monkey logo

can-fixture-socket's Introduction

can-fixture-socket's People

Contributors

andrejewski avatar aosanders avatar bmomberger-bitovi avatar chasenlehara avatar cherifgsoul avatar christopherjbaker avatar designbyonyx avatar greenkeeper[bot] avatar ilyavf avatar imaustink avatar justinbmeyer avatar marshallswain avatar mattchewone avatar matthewp avatar nlundquist avatar perehn avatar phillipskevin avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

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

Forkers

perehnbom cpoopc

can-fixture-socket's Issues

An in-range update of can-fixture is breaking the build 🚨

Version 1.1.0 of can-fixture just got published.

Branch Build failing 🚨
Dependency can-fixture
Current Version 1.0.14
Type dependency

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

can-fixture is a direct dependency of this project this is very likely breaking your project right now. If other packages depend on you it’s very likely also breaking them.
I recommend you give this issue a very high priority. I’m sure you can resolve this πŸ’ͺ

Status Details
  • ❌ continuous-integration/travis-ci/push The Travis CI build could not complete due to an error Details

Commits

The new version differs by 3 commits.

  • d09f1a7 Update dist for release
  • 4d4987b fixing postversion script
  • c3e6c53 Do Not Merge - can-reflect (#117)

See the full diff

Not sure how things should work exactly?

There is a collection of frequently asked questions and of course you may always ask my humans.


Your Greenkeeper Bot 🌴

Implement socket basics

  • can get a message and send one back
  • can simulate a basic RESTful-ish socket connection using can.fixture.store.

An in-range update of can-fixture is breaking the build 🚨

The dependency can-fixture was updated from 3.0.3 to 3.0.4.

🚨 View failing branch.

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

can-fixture is a direct dependency of this project, and it is very likely causing it to break. If other packages depend on yours, this update is probably also breaking those in turn.

Status Details
  • ❌ continuous-integration/travis-ci/push: The Travis CI build could not complete due to an error (Details).

Commits

The new version differs by 3 commits.

  • 36c079f 3.0.4
  • 50140f7 Merge pull request #159 from canjs/fix-test
  • ea8da29 Import steal-clone dynamically in the test

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 feathers is breaking the build 🚨

Version 2.1.3 of feathers just got published.

Branch Build failing 🚨
Dependency feathers
Current Version 2.1.2
Type devDependency

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

As feathers is β€œonly” a devDependency of this project it might not break production or downstream projects, but β€œonly” your build or test tools – preventing new deploys or publishes.

I recommend you give this issue a high priority. I’m sure you can resolve this πŸ’ͺ

Status Details
  • ❌ continuous-integration/travis-ci/push The Travis CI build failed Details

Commits

The new version differs by 5 commits.

  • 4d8f09c 2.1.3
  • dbc101a Merge pull request #587 from cranesandcaff/fix-typings
  • b063d26 Feathers typigns
  • 73fd713 Added before and after to feathers service
  • 2214f6c chore(package): update feathers-socketio to version 2.0.0 (#576)

See the full diff

Not sure how things should work exactly?

There is a collection of frequently asked questions and of course you may always ask my humans.


Your Greenkeeper Bot 🌴

Need to republish.

The latest version on npm doesn't have the connected and disconnected properties.

An in-range update of can-util is breaking the build 🚨

Version 3.10.19 of can-util was just published.

Branch Build failing 🚨
Dependency can-util
Current Version 3.10.18
Type dependency

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

can-util is a direct dependency of this project, and it is very likely causing it to break. If other packages depend on yours, this update is probably also breaking those in turn.

Status Details
  • ❌ continuous-integration/travis-ci/push The Travis CI build could not complete due to an error Details

Release Notes 3.10.19

Fixes an issue where can-util/js/import/import would always call Promise.resolve() in optimized builds (instead of calling steal.import).

Commits

The new version differs by 7 commits.

  • 3c4c6dd 3.10.19
  • 10d032b Merge pull request #400 from canjs/slim-support
  • d5ec94a Merge pull request #398 from canjs/diff-array
  • 18114d4 Add support for slim loader
  • 6bd6bbc Merge pull request #394 from canjs/greenkeeper/test-saucelabs-0.0.3
  • bbc5a7b Document diff-array utility
  • 68b34bd chore(package): update test-saucelabs to version 0.0.3

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 can-set is breaking the build 🚨

Version 1.3.0 of can-set just got published.

Branch Build failing 🚨
Dependency can-set
Current Version 1.3.0-pre.0
Type devDependency

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

As can-set is β€œonly” a devDependency of this project it might not break production or downstream projects, but β€œonly” your build or test tools – preventing new deploys or publishes.

I recommend you give this issue a high priority. I’m sure you can resolve this πŸ’ͺ

Status Details
  • ❌ continuous-integration/travis-ci/push The Travis CI build failed Details

Commits

The new version differs by 5 commits ahead by 5, behind by 2.

  • 1da71d8 Update dist for release
  • 1703e0a fixing postversion script
  • d8131f2 Do Not Merge - can-reflect (#57)
  • acec25d Merge pull request #56 from canjs/fix-qunit-ok
  • ce1ee7d Fixing the incorrect use of QUnit.ok

See the full diff

Not sure how things should work exactly?

There is a collection of frequently asked questions and of course you may always ask my humans.


Your Greenkeeper Bot 🌴

An in-range update of socket.io-client is breaking the build 🚨

Version 1.7.4 of socket.io-client just got published.

Branch Build failing 🚨
Dependency socket.io-client
Current Version 1.7.3
Type devDependency

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

As socket.io-client is β€œonly” a devDependency of this project it might not break production or downstream projects, but β€œonly” your build or test tools – preventing new deploys or publishes.

I recommend you give this issue a high priority. I’m sure you can resolve this πŸ’ͺ

Status Details
  • ❌ continuous-integration/travis-ci/push The Travis CI build failed Details

Not sure how things should work exactly?

There is a collection of frequently asked questions and of course you may always ask my humans.


Your Greenkeeper Bot 🌴

An in-range update of can-util is breaking the build 🚨

Version 3.6.2 of can-util just got published.

Branch Build failing 🚨
Dependency can-util
Current Version 3.6.1
Type dependency

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

can-util is a direct dependency of this project this is very likely breaking your project right now. If other packages depend on you it’s very likely also breaking them.
I recommend you give this issue a very high priority. I’m sure you can resolve this πŸ’ͺ

Status Details
  • ❌ continuous-integration/travis-ci/push The Travis CI build failed Details

Release Notes can-util/dom/attr/attr("focused") for detached elements

When the focused() attribute hander is called on a detached element, an inserted listener is added to the element, so that it can be properly focused when attached to the DOM. This means that, e.g., with can-stache-bindings <input {($focused)}="foo"> will work as expected even if foo is true at the time of initial rendering.

Also, usage examples have been added to the documentation in places where they were missing.

Commits

The new version differs by 10 commits0.

  • c738ca1 Update dist for release
  • ead0c36 Merge pull request #266 from canjs/265-usage-require-documentation
  • 095fcdf Merge branch 'master' into 265-usage-require-documentation
  • a75565e Merge pull request #267 from canjs/update-saucelabs-test
  • 73fff20 Use the test page url, not the one for Sauce Labs
  • 49d0e03 Update tests for saucelabs; iOS needs Safari 1.6.3, use test-saucelabs package
  • 06eb57d Fixes #265. Adds usage docs and require statements to some functions
  • 086e2f9 Merge pull request #264 from canjs/focused-on-insert
  • fea3f05 Use dom-mutate in inserted event test for IE9/10
  • cf48c5d Make focused attribute wait for inserted if element is detached

false

See the full diff

Not sure how things should work exactly?

There is a collection of frequently asked questions and of course you may always ask my humans.


Your Greenkeeper Bot 🌴

Events do not fall through to the "real" socket connection.

With AJAX fixtures, I only have to mock the services I want - everything else falls through to an actual AJAX request to the server. I would expect the same with sockets, but that is not the case.

Creating the mock server (and nothing else - no event listeners) prevents all socket messages from falling through to the "actual" socket connection to my server.

var io = require("socket.io-client");
var fixtureSocket = require("can-fixture-socket");
var mockServer = new fixtureSocket.Server(io);

If I set up event listeners, I am able to successfully mock a service with fixture data:

mockServer.onFeathersService('/users', store);

However, as it stands right now, I would need to do this for all of my services. I only want to do it for a select few services (like I can with AJAX).

An in-range update of can-util is breaking the build 🚨

Version 3.8.2 of can-util just got published.

Branch Build failing 🚨
Dependency can-util
Current Version 3.8.1
Type dependency

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

can-util is a direct dependency of this project this is very likely breaking your project right now. If other packages depend on you it’s very likely also breaking them.
I recommend you give this issue a very high priority. I’m sure you can resolve this πŸ’ͺ

Status Details
  • ❌ continuous-integration/travis-ci/push The Travis CI build failed Details

Release Notes Updating can-event-radiochange

https://github.com/canjs/can-event-radiochange/releases/tag/v0.1.0
https://github.com/canjs/can-event-radiochange/releases/tag/v0.1.1

Commits

The new version differs by 7 commits.

  • f419bcf Update dist for release
  • c486d7a Merge pull request #277 from canjs/update-radiochange
  • 4899b81 updating can-event-radiochange to the latest
  • ab45302 Merge pull request #262 from canjs/greenkeeper/initial
  • 444c9d0 Merge branch 'master' into greenkeeper/initial
  • 0bb0012 docs(readme): add Greenkeeper badge
  • 7e0621c chore(package): update dependencies

See the full diff

Not sure how things should work exactly?

There is a collection of frequently asked questions and of course you may always ask my humans.


Your Greenkeeper Bot 🌴

An in-range update of steal-tools is breaking the build 🚨

Version 1.3.0 of steal-tools just got published.

Branch Build failing 🚨
Dependency steal-tools
Current Version 1.2.0
Type devDependency

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

As steal-tools is β€œonly” a devDependency of this project it might not break production or downstream projects, but β€œonly” your build or test tools – preventing new deploys or publishes.

I recommend you give this issue a high priority. I’m sure you can resolve this πŸ’ͺ


Status Details
  • ❌ continuous-integration/travis-ci/push The Travis CI build failed Details
Release Notes 1.3.0

This release adds support for Babel plugins and presets. You can learn more about it in the Steal 1.4.0 release notes.

Not sure how things should work exactly?

There is a collection of frequently asked questions and of course you may always ask my humans.


Your Greenkeeper Bot 🌴

Outline API to be implemented

Similar to canjs/can-stream#3. Show what each method name, what it's arguments are, what it returns, possibly an example of its use.

.Server(io)

Create a mocked SocketIO server. Intercepts SocketIO and overrides io.Manager.prototype to work with the mocked server.
This is the main method to fixture socket.io

var io = require('socket.io-client');
var mockServer = new fixtureSocket.Server(io);

mockServer.on('connection', function(){
    mockServer.emit('notifications', {test: 'OK'})
});

.toFixtureStoreHandler(fixtureStoreMethod)

Wrap fixture.store methods to become socket event handlers:

var fixtureStore = fixture.store([
    {id: 1, title: 'One'},
    {id: 2, title: 'Two'}
], new canSet.Algebra({}));

mockServer.on({
    'messages get': fixtureSocket.toFixtureStoreHandler(fixtureStore.getData)
});

.wrapFixtureStore(fixtureStore)

Wrap fixture store to provide socket event ready methods:

var socketMessagesStore = fixtureSocket.wrapFixtureStore(fixtureStore);

mockServer.on({
    'messages remove': socketMessagesStore.destroyData,
    'messages create': socketMessagesStore.createData,
    'messages update': socketMessagesStore.updateData
});

.connectFeathersStoreToServer(serviceName, fixtureStore, mockServer, [options])

Wrap fixture.store to implement FeathersJS protocol:

var fixtureStore = fixture.store([
    {id: 1, title: 'One'},
    {id: 2, title: 'Two'}
], new canSet.Algebra({}));

fixtureSocket.connectFeathersStoreToServer('messages', fixtureStore, mockServer);

Options can be used to specify id property name:

var fixtureStore = fixture.store([
    {_id: 1, title: 'One'},
    {_id: 2, title: 'Two'}
], new canSet.Algebra(canSet.props.id('_id')));

fixtureSocket.connectFeathersStoreToServer('messages', fixtureStore, mockServer, {id: "_id"});

Cannot return error object in socket callback.

This is only an issue I've noticed on Safari for Mac. Returning an error like this example results in an error Attempted to assign to readonly property.

var errors = require('feathers-errors');

mockServer.on('accounts::find', function (query, callback) {
  if (isAuthenticated) {
    fixtureSocket.requestHandlerToListener(accountStore.getList).apply(null, arguments);
  } else {
    var error = new errors.NotAuthenticated('not-authenticated');
    callback(error);
  }
});

It's also returning the same error with a plain JS error:

mockServer.on('accounts::find', function (query, callback) {
  if (isAuthenticated) {
    fixtureSocket.requestHandlerToListener(accountStore.getList).apply(null, arguments);
  } else {
    var error = new Error('not-authenticated');
    callback(error);
  }
});

If I return a plain JS object instead of an Error object, it works fine:

mockServer.on('accounts::find', function (query, callback) {
  if (isAuthenticated) {
    fixtureSocket.requestHandlerToListener(accountStore.getList).apply(null, arguments);
  } else {
    var error = {
      "name": "NotAuthenticated",
      "message": "not-authenticated",
      "code": 401,
      "className": "not-authenticated",
      "errors": {}
    };
    callback(error);
  }
});

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

Version 1.5.1 of steal just got published.

Branch Build failing 🚨
Dependency steal
Current Version 1.5.0
Type devDependency

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

As steal is β€œonly” a devDependency of this project it might not break production or downstream projects, but β€œonly” your build or test tools – preventing new deploys or publishes.

I recommend you give this issue a high priority. I’m sure you can resolve this πŸ’ͺ

Status Details - ❌ **continuous-integration/travis-ci/push** The Travis CI build failed [Details](https://travis-ci.org/canjs/can-fixture-socket/builds/225686537)

Release Notes 1.5.1

This is a bug fix release that fixes an issue with Zombie 5.x. Zombie no longer supports the attribute.nodeName property. This release fixes this by using attribute.name instead. Fixed #1177

Commits

The new version differs by 3 commits0.

  • 933bd12 1.5.1
  • ba6c847 Merge pull request #1181 from stealjs/attr-name
  • c6233bc Use attr.name to get an attribute's name

false

See the full diff

Not sure how things should work exactly?

There is a collection of frequently asked questions and of course you may always ask my humans.


Your Greenkeeper Bot 🌴

broken with latest version of feathers

After upgrading the packages to the latest of featherjs, the tests for feathers socketio are now failing.

I upgraded the devDependencies as follows:

"devDependencies": {
    "@feathersjs/feathers": "^3.3.1",
    "@feathersjs/socketio-client": "^1.2.1",
    "can-set-legacy": "<2.0.0",
    "detect-cyclic-packages": "^1.1.0",
    "done-serve": "^1.2.0",
    "donejs-cli": "^1.0.1",
    "es6-promise-polyfill": "^1.2.0",
    "generator-donejs": "^1.0.5",
    "jshint": "^2.9.1",
    "object-assign": "^4.1.0",
    "socket.io-client": "^2.2.0",
    "steal": "^1.5.6",
    "steal-qunit": "^1.0.1",
    "steal-tools": "^1.1.2",
    "testee": "^0.9.0"
  }

Then in the test.js file I removed the feathers-hooks package as this is no longer an external dependency:

...
var feathers = require('@feathersjs/feathers');
var feathersSocketio = require('@feathersjs/socketio-client');
...

var app = feathers()
  .configure(feathersSocketio(socket));
...

After making these changes and re-running the tests I see this error "Timeout of 5000ms exceeded calling find on messages".

An in-range update of generator-donejs is breaking the build 🚨

Version 1.0.6 of generator-donejs just got published.

Branch Build failing 🚨
Dependency generator-donejs
Current Version 1.0.5
Type devDependency

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

As generator-donejs is β€œonly” a devDependency of this project it might not break production or downstream projects, but β€œonly” your build or test tools – preventing new deploys or publishes.

I recommend you give this issue a high priority. I’m sure you can resolve this πŸ’ͺ

Status Details
  • ❌ continuous-integration/travis-ci/push The Travis CI build failed Details

Release Notes Miniture fixes

This patch release is a grab bag of little fixes, including but not limited to:

  • An update to the plugin index.html styles #239
  • An update to the issue template #249
  • A note for minifying plugin builds #255
  • Removal of an ugly log message #247
Commits

The new version differs by 18 commits.

  • 9eb01fa 1.0.6
  • a88a7d5 Merge pull request #255 from donejs/203-howto-minify2
  • 8a59493 Add note on build minification
  • 7945522 Merge pull request #252 from donejs/node8
  • d6c7adb Updated appveyor to use node 8
  • b72a038 Updated travis to add node 8
  • 4fdc3f7 Merge pull request #249 from donejs/24-issue-template
  • aaf6010 Update ISSUE_TEMPLATE.md
  • 02e0805 Remove "writing package.json" message (#247)
  • 19daf3a Merge pull request #244 from donejs/plugin-jshint-latedef
  • c1e8af6 Set "latedef" to "nofunc" in the plugin generator
  • 801dace Merge pull request #239 from donejs/generated-plugin-index-styles
  • 236a241 Update index.html
  • 81211ac Fix to allow dashed keywords (#238)
  • b6030cf Update index.html

There are 18 commits in total.

See the full diff

Not sure how things should work exactly?

There is a collection of frequently asked questions and of course you may always ask my humans.


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.