Fix paramCase bug

This commit is contained in:
Gordon 2021-05-16 00:15:36 +01:00
parent 6ed9de5e28
commit 2e6ea98275
6 changed files with 11 additions and 7 deletions

View File

@ -1,3 +1,7 @@
# 0.9.2
* Update kanbn dependency, fixes some bugs in paramCase converter that were causing task ids to not generate correctly (which would have broken lots of boards and required manual fixing... this should sort out most if not all of the problems)
# 0.9.1 # 0.9.1
* Update kanbn dependency, now has support for non-latin characters in task ids. _Note: task ids should be generated from the task name the same as before, but there might be edge-cases where this doesn't happen. You might need to manually rename some tasks and update their links in `index.md` accordingly. Use `kanbn validate` to quickly find issues. Please let me know via Github issues if this occurs! * Update kanbn dependency, now has support for non-latin characters in task ids. _Note: task ids should be generated from the task name the same as before, but there might be edge-cases where this doesn't happen. You might need to manually rename some tasks and update their links in `index.md` accordingly. Use `kanbn validate` to quickly find issues. Please let me know via Github issues if this occurs!

6
package-lock.json generated
View File

@ -1352,9 +1352,9 @@
} }
}, },
"@basementuniverse/kanbn": { "@basementuniverse/kanbn": {
"version": "0.8.0", "version": "0.8.2",
"resolved": "https://registry.npmjs.org/@basementuniverse/kanbn/-/kanbn-0.8.0.tgz", "resolved": "https://registry.npmjs.org/@basementuniverse/kanbn/-/kanbn-0.8.2.tgz",
"integrity": "sha512-NaDhXS7mAw2t3CWqBHNYRTxadvGq8zF5M+4FN2O7ZwjE4wl7z4eMPOcUhBgGIG93oM3Mtw1nFAnbM+Hxt9I3EQ==", "integrity": "sha512-n/Mze4yVIaSH/kYfCNUFRDNRWBgu5YDdiq74Rvk9ZlFJ4jq2d8Y+3CrYARdx3UoSng2xGrSzxXSh9IcFe3VY2g==",
"requires": { "requires": {
"asciichart": "^1.5.25", "asciichart": "^1.5.25",
"auto-load": "^3.0.4", "auto-load": "^3.0.4",

View File

@ -88,7 +88,7 @@
} }
}, },
"dependencies": { "dependencies": {
"@basementuniverse/kanbn": "^0.8.0", "@basementuniverse/kanbn": "^0.8.2",
"dateformat": "^4.5.1", "dateformat": "^4.5.1",
"formik": "^2.2.6", "formik": "^2.2.6",
"git-user-name": "^2.0.0", "git-user-name": "^2.0.0",

View File

@ -1,7 +1,7 @@
import { DragDropContext, Droppable } from "react-beautiful-dnd"; import { DragDropContext, Droppable } from "react-beautiful-dnd";
import React, { useState } from "react"; import React, { useState } from "react";
import TaskItem from './TaskItem'; import TaskItem from './TaskItem';
import { paramCase } from 'param-case'; import { paramCase } from '@basementuniverse/kanbn/src/utility';
import VSCodeApi from "./VSCodeApi"; import VSCodeApi from "./VSCodeApi";
import formatDate from 'dateformat'; import formatDate from 'dateformat';

View File

@ -2,7 +2,7 @@ import React, { useState } from 'react';
import { Formik, Form, Field, ErrorMessage, FieldArray } from 'formik'; import { Formik, Form, Field, ErrorMessage, FieldArray } from 'formik';
import formatDate from 'dateformat'; import formatDate from 'dateformat';
import VSCodeApi from './VSCodeApi'; import VSCodeApi from './VSCodeApi';
import { paramCase } from 'param-case'; import { paramCase } from '@basementuniverse/kanbn/src/utility';
import gitUsername from 'git-user-name'; import gitUsername from 'git-user-name';
import ReactMarkdown from 'react-markdown'; import ReactMarkdown from 'react-markdown';
import TextareaAutosize from 'react-textarea-autosize'; import TextareaAutosize from 'react-textarea-autosize';

View File

@ -1,7 +1,7 @@
import React from "react"; import React from "react";
import { Draggable } from "react-beautiful-dnd"; import { Draggable } from "react-beautiful-dnd";
import formatDate from 'dateformat'; import formatDate from 'dateformat';
import { paramCase } from 'param-case'; import { paramCase } from '@basementuniverse/kanbn/src/utility';
import VSCodeApi from "./VSCodeApi"; import VSCodeApi from "./VSCodeApi";
const TaskItem = ({ task, position, dateFormat, vscode }: { const TaskItem = ({ task, position, dateFormat, vscode }: {