From 2e6ea9827586ce6a3549083d784464ca715854a2 Mon Sep 17 00:00:00 2001 From: Gordon Date: Sun, 16 May 2021 00:15:36 +0100 Subject: [PATCH] Fix paramCase bug --- CHANGELOG.md | 4 ++++ package-lock.json | 6 +++--- package.json | 2 +- src/Board.tsx | 2 +- src/TaskEditor.tsx | 2 +- src/TaskItem.tsx | 2 +- 6 files changed, 11 insertions(+), 7 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 64c9420..0c49ade 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 * 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! diff --git a/package-lock.json b/package-lock.json index 113127e..92b9474 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1352,9 +1352,9 @@ } }, "@basementuniverse/kanbn": { - "version": "0.8.0", - "resolved": "https://registry.npmjs.org/@basementuniverse/kanbn/-/kanbn-0.8.0.tgz", - "integrity": "sha512-NaDhXS7mAw2t3CWqBHNYRTxadvGq8zF5M+4FN2O7ZwjE4wl7z4eMPOcUhBgGIG93oM3Mtw1nFAnbM+Hxt9I3EQ==", + "version": "0.8.2", + "resolved": "https://registry.npmjs.org/@basementuniverse/kanbn/-/kanbn-0.8.2.tgz", + "integrity": "sha512-n/Mze4yVIaSH/kYfCNUFRDNRWBgu5YDdiq74Rvk9ZlFJ4jq2d8Y+3CrYARdx3UoSng2xGrSzxXSh9IcFe3VY2g==", "requires": { "asciichart": "^1.5.25", "auto-load": "^3.0.4", diff --git a/package.json b/package.json index 98ad4fe..2cefc4f 100644 --- a/package.json +++ b/package.json @@ -88,7 +88,7 @@ } }, "dependencies": { - "@basementuniverse/kanbn": "^0.8.0", + "@basementuniverse/kanbn": "^0.8.2", "dateformat": "^4.5.1", "formik": "^2.2.6", "git-user-name": "^2.0.0", diff --git a/src/Board.tsx b/src/Board.tsx index df3057a..d809115 100644 --- a/src/Board.tsx +++ b/src/Board.tsx @@ -1,7 +1,7 @@ import { DragDropContext, Droppable } from "react-beautiful-dnd"; import React, { useState } from "react"; import TaskItem from './TaskItem'; -import { paramCase } from 'param-case'; +import { paramCase } from '@basementuniverse/kanbn/src/utility'; import VSCodeApi from "./VSCodeApi"; import formatDate from 'dateformat'; diff --git a/src/TaskEditor.tsx b/src/TaskEditor.tsx index 3ceb537..a22fcb5 100644 --- a/src/TaskEditor.tsx +++ b/src/TaskEditor.tsx @@ -2,7 +2,7 @@ import React, { useState } from 'react'; import { Formik, Form, Field, ErrorMessage, FieldArray } from 'formik'; import formatDate from 'dateformat'; import VSCodeApi from './VSCodeApi'; -import { paramCase } from 'param-case'; +import { paramCase } from '@basementuniverse/kanbn/src/utility'; import gitUsername from 'git-user-name'; import ReactMarkdown from 'react-markdown'; import TextareaAutosize from 'react-textarea-autosize'; diff --git a/src/TaskItem.tsx b/src/TaskItem.tsx index 207f08b..77c877d 100644 --- a/src/TaskItem.tsx +++ b/src/TaskItem.tsx @@ -1,7 +1,7 @@ import React from "react"; import { Draggable } from "react-beautiful-dnd"; import formatDate from 'dateformat'; -import { paramCase } from 'param-case'; +import { paramCase } from '@basementuniverse/kanbn/src/utility'; import VSCodeApi from "./VSCodeApi"; const TaskItem = ({ task, position, dateFormat, vscode }: {