Skip to content

Commit

Permalink
Version Packages
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed May 13, 2021
1 parent 019e4af commit 9fb54ca
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 23 deletions.
5 changes: 0 additions & 5 deletions .changeset/early-masks-mix.md

This file was deleted.

17 changes: 0 additions & 17 deletions .changeset/silver-ways-lie.md

This file was deleted.

22 changes: 22 additions & 0 deletions packages/wmr/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,27 @@
# wmr

## 2.1.0

### Minor Changes

- [`d907131`](https://github.com/preactjs/wmr/commit/d907131b43898e65872e3c4190456bc89b4fe58d) [#552](https://github.com/preactjs/wmr/pull/552) Thanks [@marvinhagemeister](https://github.com/marvinhagemeister)! - Add support for importing files outside of the main public directory. This feature is based on aliases and `<project>/src` is added by default. To prevent unexpected file access only the directories defined in the aliases and the public directory are allowed to read files from. To alias a new path add the following to your WMR configuration file:

```js
// File: wmr.config.mjs
import { defineConfig } from 'wmr';

export default defineConfig({
aliases: {
// This will alias "~" to "<project>/src/components/"
'~/': './src/components/'
}
});
```

### Patch Changes

- [`36b927f`](https://github.com/preactjs/wmr/commit/36b927f7900543cdd6602cde00f307cb91f7cd57) [#612](https://github.com/preactjs/wmr/pull/612) Thanks [@developit](https://github.com/developit)! - Upgrade to Terser 5

## 2.0.2

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/wmr/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "wmr",
"version": "2.0.2",
"version": "2.1.0",
"bin": "wmr.cjs",
"type": "module",
"main": "index.js",
Expand Down

0 comments on commit 9fb54ca

Please sign in to comment.