Giter Club home page Giter Club logo

arango-migrate's Introduction

๐Ÿ‘‹ About me

๐Ÿฆ Twitter - ๐Ÿฆ‹ Bluesky - ๐Ÿ˜ Mastodon - ๐ŸŽง Liked Albums

๐Ÿ”ฌ๐Ÿฅผ I like to work with Graph databases and NextJS.

โ›ฐ๏ธ ๐Ÿง—โ€โ™‚๏ธ Rock climbing is cool.

๐ŸŒŠ โš“ Traveling full-time since 2021. I've lived in ๐Ÿ‡ฆ๐Ÿ‡ฑ Albania, ๐Ÿ‡ฌ๐Ÿ‡ช Georgia, ๐Ÿ‡ฐ๐Ÿ‡ฟ Kazakhstan, ๐Ÿ‡น๐Ÿ‡ท Turkey, and ๐Ÿ‡บ๐Ÿ‡ฆ Ukraine.

๐ŸŒง๏ธ โ˜• Seattle is my homebase.

๐Ÿ’ป ๐Ÿš€ Incrementing my GitHub commit streak one day at a time.

๐Ÿ“ฑ Apps

๐Ÿงฌ KGraph.co - The next-gen platform for building AI powered knowledge graphs. Take notes, learn new skills, onboard new team-members and share knowledge across your organization and beyond. LinkedIn | Twitter.

๐Ÿ’ฅ SmashTracker.app - Web app for tracking Super Smash Bros. match results and game statistics.

๐ŸฆŽ Reptiles.dev - Image placeholder service that generates colorful SVGs. Super fast and easy to use. GitHub.

๐Ÿ“ฆ Packages

๐Ÿ—„๏ธ Gist Database - Transform gist into your personal key/value datastore.

๐Ÿ—ƒ๏ธ Next Upload - Turn-key solution for integrating Next.js with signed & secure file-uploads to an S3 compliant storage service such as R2, AWS, or Minio.

๐Ÿ“ฎ Next Invite - A drop-in invite system for your Next.js app. Generate and share invite links for users to join your app.

๐Ÿ” Next Auth MUI - Sign-in dialog component for NextAuth built with Material UI and React. Detects configured OAuth and Email providers and renders buttons or input fields for each respectively. Fully themeable, extensible and customizable to support custom credential flows.

โš–๏ธ Next Build Size - CLI tool to calculate and compare the sizes of artifacts produced by next build. Integrates with Github Actions, Discord and Slack.

โŒš๏ธ Next Realtime - Experimental drop-in solution for real-time data leveraging the Next.js Data Cache.

โœ… Mui Joy Confirm - Confirmation dialogs built on top of @mui/joy and react hooks.

๐Ÿ—‚๏ธ Use File System - A set of React hooks to interact with the File System API. Watch a directory for changes and return a map of filepaths & contents when a file is added, modified or removed.

๐Ÿ™ Use Octokit - A data-fetching hook built on top of the Octokit and SWR for interacting with the Github API. Use this inside a React component for a type-safe, data-fetching experience with caching, polling, and more.

๐ŸŒ Space Slug - Generate unique slugs, usernames, numbers, custom words, and more using an intuitive api with zero dependencies.

๐Ÿฅ‘ Arango Migrate - Database migration tools and CLI for ArangoDB.

๐Ÿ—๏ธ Keyv Arango - ArangoDB store for Keyv: a simple key-value storage with support for multiple backends.

๐Ÿค– AI Complete - A toolkit that super-charges your workflow when working with openai.

๐Ÿ“‘ Markdown To API - Generate GraphQL APIs from Markdown files plus seamlessly integrate with Next.js for generating static content or server side rendering. Perfect for using a Git repo as a simple headless CMS powered by Markdown files.

๐Ÿ‘– Slack Manifest - CLI tools for interacting with a Slack App Manifest. Store your manifest as a json file or typescript object and use slack-manifest to create, validate or update your Slack App as part of a CI/CD pipeline.

โ™พ๏ธ Halo API - GraphQL API and NPM package for querying Halo Infinite data.

๐ŸŒก๏ธ TSC Baseline - Save a baseline of TypeScript errors and compare new errors against it. Useful for type-safe feature development in TypeScript projects that have a lot of errors. This tool will filter out errors that are already in the baseline and only show new errors.

๐Ÿ Starter-kits

๐Ÿ”ฅ React / Typescript Package Starter - A modern starter-kit for creating & publishing React components packages to NPM. Batteries included. Spend more time coding and less time configuring.




arango-migrate's People

Contributors

dependabot[bot] avatar eonae avatar mrkuzzmin avatar renovate-bot avatar renovate[bot] avatar timmikeladze avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

arango-migrate's Issues

Unable to use in project/package where "type": "module"

Great project but I'm having issues with using it in a project/package when "type": "module" is set in the package.json.
I get the following errors:

Error [ERR_REQUIRE_ESM]: require() of ES Module /Users/user42/Documents/ITDev/projects/proj123/config.migrate.js from /Users/user42/Documents/ITDev/projects/proj123/node_modules/arango-migrate/dist/cli.js not supported.
config.migrate.js is treated as an ES module file as it is a .js file whose nearest parent package.json contains "type": "module" which declares all .js files in that package scope as ES modules.
Instead rename config.migrate.js to end in .cjs, change the requiring code to use dynamic import() which is available in all CommonJS modules, or change "type": "module" to "type": "commonjs" in /Users/user42/Documents/ITDev/projects/proj123/package.json to treat all .js files as CommonJS (using .mjs for all ES modules instead).

    at Function.n.validateConfigPath (/Users/user42/Documents/ITDev/projects/proj123/node_modules/arango-migrate/dist/cli.js:2:3560)
    at Object.<anonymous> (/Users/user42/Documents/ITDev/projects/proj123/node_modules/arango-migrate/dist/cli.js:2:14046) {
  code: 'ERR_REQUIRE_ESM'

// Using config: config.migrate.js
const { database } = require('@abc-lib/load-config').loadConfig();

module.exports = {
  dbConfig: {
    databaseName: database.database,
    url: database.host,
    auth: {
      username: database.user,
      password: database.password,
    },
  },
};

Also tried a config with -C after renaming the config to config.migrate.cjs but that produced other errors

/Users/user42/Documents/ITDev/projects/proj123/config.migrate.cjs:1
const { database } = require('@abc-lib/load-config').loadConfig();
                     ^

Error [ERR_REQUIRE_ESM]: require() of ES Module /Users/user42/Documents/ITDev/projects/proj123/node_modules/@abc-lib/load-config/lib/index.js from /Users/user42/Documents/ITDev/projects/proj123/config.migrate.cjs not supported.
Instead change the require of index.js in /Users/user42/Documents/ITDev/projects/proj123/config.migrate.cjs to a dynamic import() which is available in all CommonJS modules.
    at Object.<anonymous> (/Users/user42/Documents/ITDev/projects/proj123/config.migrate.cjs:1:22)
    at Function.n.validateConfigPath (/Users/user42/Documents/ITDev/projects/proj123/node_modules/arango-migrate/dist/cli.js:2:3560)
    at Object.<anonymous> (/Users/user42/Documents/ITDev/projects/proj123/node_modules/arango-migrate/dist/cli.js:2:14046) {
  code: 'ERR_REQUIRE_ESM'
}

// Using config: config.migrate.cjs
const { database } = require('@abc-lib/load-config').loadConfig();

module.exports = {
  dbConfig: {
    databaseName: database.database,
    url: database.host,
    auth: {
      username: database.user,
      password: database.password,
    },
  },
};

And also tried using ESM in the config but got these errors:

Error [ERR_REQUIRE_ESM]: require() of ES Module /Users/user42/Documents/ITDev/projects/proj123/config.migrate.js from /Users/user42/Documents/ITDev/projects/proj123/node_modules/arango-migrate/dist/cli.js not supported.
Instead change the require of config.migrate.js in /Users/user42/Documents/ITDev/projects/proj123/node_modules/arango-migrate/dist/cli.js to a dynamic import() which is available in all CommonJS modules.
    at Function.n.validateConfigPath (/Users/user42/Documents/ITDev/projects/proj123/node_modules/arango-migrate/dist/cli.js:2:3560)
    at Object.<anonymous> (/Users/user42/Documents/ITDev/projects/proj123/node_modules/arango-migrate/dist/cli.js:2:14046) {
  code: 'ERR_REQUIRE_ESM'
}

// Using // config.migrate.js
import { loadConfig } from '@awt-lib/load-config';

const { database } = loadConfig();

export default {
  dbConfig: {
    databaseName: database.database,
    url: database.host,
    auth: {
      username: database.user,
      password: database.password,
    },
  },
};

Would be great to use this but I cannot see how to work around this.

Dependency Dashboard

This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.

Rate-Limited

These updates are currently rate-limited. Click on a checkbox below to force their creation now.

  • chore(deps): update dependency eslint to v9
  • chore(deps): update dependency eslint-plugin-n to v17
  • ๐Ÿ” Create all rate-limited PRs at once ๐Ÿ”

Open

These updates have all been created already. Click a checkbox below to force a retry/rebase of any.

Ignored or Blocked

These are blocked by an existing closed PR and will not be recreated unless you click a checkbox below.

Detected dependencies

docker-compose
docker-compose.yml
github-actions
.github/workflows/main.yml
  • xinova/arangodb-action v1
  • actions/checkout v3
  • actions/setup-node v3
  • c-hive/gha-yarn-cache v2
npm
package.json
  • commander ^9.4.1
  • glob ^8.0.3
  • slugify ^1.6.5
  • @ryansonshine/commitizen 4.2.8
  • @ryansonshine/cz-conventional-changelog 3.3.4
  • @types/glob 8.0.0
  • @types/jest 29.2.0
  • @typescript-eslint/eslint-plugin 5.41.0
  • @typescript-eslint/parser 5.41.0
  • arangojs ^8.6.0
  • dotenv 16.0.3
  • eslint 8.26.0
  • eslint-config-standard 17.0.0
  • eslint-plugin-import 2.26.0
  • eslint-plugin-n 16.4.0
  • eslint-plugin-node 11.1.0
  • eslint-plugin-promise 6.1.1
  • eslint-plugin-typescript-sort-keys 2.1.0
  • husky 8.0.1
  • jest 29.2.2
  • lint-staged 13.0.3
  • microbundle 0.15.1
  • release-it 17.0.1
  • ts-jest 29.0.3
  • typescript 4.8.4
  • arangojs >=7.8.0
  • semver >=7.5.2

  • Check this box to trigger a request for Renovate to run again on this repository

Creating Edges

Is it possible to create edges? Can't find it in source code

change incrementing to timestamp

We use your package in a large development team
we have problems with increment names (in parallel, several developers can create different migrations with the same numbers)
It makes sense to change the name to timestamps

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.