Giter Club home page Giter Club logo

blue-chip's People

Contributors

bsmith83 avatar mfpiccolo 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  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

blue-chip's Issues

Includes only work if relationship name matches resource type

The .includes() feature only works if the resource name is the same as the resource type (optionally pluralized), e.g.:

relationships: {
  user: {data: {id: 8, type: "users"}}
}

But there is nothing in the spec AFAIK that requires that, so this is also valid:

relationships: {
  reviewer: {data: {id: 8, type: "users"}}
}

But blue-chip will not find that relationship. I haven't dug into the code yet to determine what this will require, but this ought to be supported, right?

Build process fails with 'BABEL_ENV' is not recognized as an internal or external command

I'm encountering an issue when trying to install @blue-chip/core which has a dependency on graphql-normalizr. The build process for graphql-normalizr fails with the error 'BABEL_ENV' is not recognized as an internal or external command.

Steps to Reproduce:

  1. Run npm i -S @blue-chip/core in my project directory.

  2. Encounter the following error during the installation process:

    npm ERR! > [email protected] prepare
    npm ERR! > npm run clean && npm run build
    ...
    npm ERR! > [email protected] build:cjs
    npm ERR! > BABEL_ENV=cjs babel src --out-dir lib
    npm ERR! 'BABEL_ENV' is not recognized as an internal or external command,
    npm ERR! operable program or batch file.
    

Expected Behavior:
I expect the installation process to complete successfully without any errors.

Environment:

  • OS: Windows 10
  • Node.js version: 21.7.1
  • graphql-normalizr version: 1.0.2

Additional Context:
I've tried setting the BABEL_ENV environment variable in the package.json file using cross-env, but the issue persists. Any assistance in resolving this would be greatly appreciated.

Error in `whereRelated` for empty queries

Slightly similar to #28, if a query is made against a resource store that contains no matches, and that query has a .whereRelated, it will fail (v0.3.4, screenshot from Safari):

blue-chip-object-values

Prefixing a this.currentResource && check before checking Object.values() seems to do the trick, but I might be overlooking a better way to do it?

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.