Skip to content

Commit

Permalink
Version Packages (#12)
Browse files Browse the repository at this point in the history
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
  • Loading branch information
github-actions[bot] and github-actions[bot] authored Jun 10, 2020
1 parent bef1b36 commit cbbb959
Show file tree
Hide file tree
Showing 17 changed files with 63 additions and 113 deletions.
5 changes: 0 additions & 5 deletions .changeset/breezy-dancers-think.md

This file was deleted.

8 changes: 0 additions & 8 deletions .changeset/clean-cooks-compare.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/clever-otters-draw.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/cyan-walls-dance.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/gold-phones-sneeze.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/gorgeous-apples-join.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/heavy-kangaroos-carry.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/odd-steaks-fry.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/olive-zebras-love.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/pink-cobras-deny.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/pretty-moose-argue.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/shiny-rules-taste.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/short-lobsters-film.md

This file was deleted.

37 changes: 0 additions & 37 deletions .changeset/strong-tables-smash.md

This file was deleted.

7 changes: 0 additions & 7 deletions .changeset/sweet-coats-develop.md

This file was deleted.

62 changes: 62 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,67 @@
# skuba

## 3.5.0

### Minor Changes

- 84a3262: ESLint 7 + `typescript-eslint` 3

This upgrade introduces stricter rules around `any` and `object` usage for type safety.

Consider the following alternatives:

- Use `unknown` for a value whose type is truly unknown. This is a type-safe alternative to `any` that the TypeScript ecosystem is moving towards.

```diff
- const data = JSON.parse(str);
+ const data = JSON.parse(str) as unknown;
```

- Prove the value has a specific type using a [type guard](https://www.typescriptlang.org/docs/handbook/advanced-types.html#user-defined-type-guards) or runtime validation library.

```diff
- const safeData = inputData as any;
+ const safeData = RuntimeValidator.check(inputData);
```

- Use `Record<PropertyKey, unknown>` to indicate an object with unknown properties.

```diff
- const isObject = (data: unknown): data is object => { ... };
+ const isObject = (data: unknown): data is Record<PropertyKey, unknown> => { ... };
```

- Disable the specific ESLint rule for the problematic line.

```typescript
/* eslint-disable-next-line @typescript-eslint/no-unsafe-assignment */
const takeAnyBody = ctx.request.body;
```

- 0d3f0ad: **build-package:** Add opinionated command to replace `smt build`

See the [migration documentation](https://github.com/seek-oss/skuba/blob/master/docs/migrating-from-seek-module-toolkit.md) for more information.

### Patch Changes

- bef1b36: **init:** Restore `--silent` arg for `yarn add`
- 3f4bb58: **configure, init:** Tweak ignore file patterns

Directory names like `/lib-es2015` are ignored based on prefix now,
but certain patterns have been restricted to the root to allow for `/src/lib`.

- b39a0e0: **configure:** Use `latest-version` to check package versions
- 70ae29a: **configure, init:** Switch to oss `skuba-dive` package
- b44523a: Switch to `seek-datadog-custom-metrics` + `seek-koala`
- 030ebb4: **configure:** Keep name, readme and version fields in package.json
- a311624: **configure:** Drop `--ignore-optional` from `yarn install`
- b61a3ca: **start:** Remove support for a custom port logging function
- a311624: **init:** Drop `--ignore-optional --silent` from `yarn add`
- 54961a5: **template/koa-rest-api:** Bump Gantry plugin to v1.2.2
- 54211b2: **deps:** Declare `@types/jest` as a peer dependency
- 6600c2f: **format, lint:** Group `'src'` import along with `'src/**'`
- 50a316f: **configure, init:** Exclude files from templating based on .gitignore

## 3.4.1

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"engines": {
"node": ">=12"
},
"version": "3.4.1",
"version": "3.5.0",
"main": "lib-commonjs",
"module": "lib-es2015",
"typings": "lib-types/index.d.ts",
Expand Down

0 comments on commit cbbb959

Please sign in to comment.