Code Monkey home page Code Monkey logo

didyoumean2's People

Contributors

claylevering avatar dependabot[bot] avatar foray1010 avatar greenkeeper[bot] avatar greenkeeperio-bot avatar jacobley avatar renovate-bot avatar renovate[bot] avatar valdrox 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

Watchers

 avatar  avatar  avatar  avatar  avatar

didyoumean2's Issues

An in-range update of eslint-config-foray1010 is breaking the build 🚨

The devDependency eslint-config-foray1010 was updated from 6.16.0 to 6.17.0.

🚨 View failing branch.

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

eslint-config-foray1010 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.

  • 0c071e3 chore(release): 6.17.0
  • 63a1f49 feat: support typescript
  • 150c84e chore(package): update markdownlint-cli to version 0.13.0 (#48)

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 🌴

Action Required: Fix Renovate Configuration

There is an error with this repository's Renovate configuration that needs to be fixed. As a precaution, Renovate will stop PRs until it is resolved.

Error type: undefined. Note: this is a nested preset so please contact the preset author if you are unable to fix it yourself.

[Discussion] Concerning the reversal made in 2.0.4

I see in the changelog that you reverted a dependency upgrade for the fact that the upgraded version does not support NodeJS v4. However v4 is by now a very old version of NodeJS with v10 being LTS and that after V8 was LTS already for a very long time.

Should NodeJS v4 really still be supported in the library, especially if that means making compromises elsewhere?

In my opinion it is perfectly acceptable to go to 3.0.0 of this lib and drop Node v4 support. I'm saying 3.0.0 as I assume you would like to adhere by semver spec since you went from 2.0.3 to 2.0.4 for fixing a breaking bug, however bumping major version and introducing breaking API changes is perfectly acceptable.

Can't import the named export 'distance'

I use your library in a React project. It runs just fine, and I quite fond of it.

Hovever I get an error message when I want to make a production build.

./node_modules/didyoumean2/dist/index.mjs
Can't import the named export 'distance' from non EcmaScript module (only default export is available)

I made a search and it seems that the react cli tools create-react-app could not handle a certain export type. I tried a suggested solution to add react-app-rewired and make a configuration change, but it is not working for me.

Now I stranded here.

`npm install` fails when using npm version `10.4.0`

Installation fails when installing with npm version 10.4.0. The npm install command runs the postinstall script, which attempts to run husky but fails as this is not listed as a package dependency. This does not occur when using npm version 10.3.0.

Output when using npm 10.3.0:

$ npm --version
10.3.0
$ npm install [email protected]

added 5 packages, and audited 6 packages in 3s

found 0 vulnerabilities

Output when using npm 10.4.0:

$ npm --version
10.4.0
$ npm install [email protected]
npm ERR! code 127
npm ERR! path /home/kjots/Development/Projects/didyoumean2-postinstall-issue/node_modules/didyoumean2
npm ERR! command failed
npm ERR! command sh -c husky install
npm ERR! sh: 1: husky: not found

returns non similar value.

I am using this package for a discord bot, but I have an array of my command names and when I try to sort through the array with this package it doesn't return a similar value.
here is a code example.

const didYouMean = require("didyoumean2").default;

let command_names = [ 'block',
  'stats',
  'config',
  'disable',
  'enable',
  'prefix',
  'user-config',
  'help',
  'invite',
  'ping',
  'server-perms',
  'guild-info',
  'info',
  'role-info',
  'notes',
  'enable-devmode',
  'guild-language',
  'toggle-dnd',
  'toggle-language-override',
  'toggle-ocr',
  'user-language',
  'regexes',
  'words' ];
const maybe = didYouMean('re', command_names, { // should find and return `regexes` since it is the closest value to `re` instead returns `help` because it comes before the value `regexes`
    threshold: 5,
    thresholdType: 'edit-distance',
    returnType: 'all-closest-matches'
});
console.log(maybe);

Browser packaging?

Neat stuff! I am a user of https://github.com/dcporter/didyoumean.js and was looking for a TypeScript version.

What I like about that version is the browser support and 1 file. Easy to copy/paste it into a larger library without requiring a dependency.

Just wanted to offer that feedback that might be useful to build for some browser targets in your "dist/" as well. Could also then build a web page with a demo.

Publish latest version

Hi, I was using this package during a CJS->ESM migration and typescript stopped working.

I realized the fix for this was actually implemented a while back! Almost a year ago: 734187d

However it is not published to npm, which is still sitting at 5.0.0 and is over 2 years old! f011011

A lot has happened since then: v5.0.0...master and it would be great to finally release those changes to consumers

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.