Skip to content

Commit

Permalink
Merge pull request #129 from podium-lib/next
Browse files Browse the repository at this point in the history
Next
  • Loading branch information
digitalsadhu authored Nov 29, 2023
2 parents 7cba238 + 878a5fd commit b859030
Show file tree
Hide file tree
Showing 4 changed files with 45 additions and 14 deletions.
31 changes: 31 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,15 @@
# [4.0.0-next.3](https://github.com/podium-lib/hapi-layout/compare/v4.0.0-next.2...v4.0.0-next.3) (2023-11-27)


### Bug Fixes

* **deps:** update dependency @podium/utils to v4.4.37 ([40dd906](https://github.com/podium-lib/hapi-layout/commit/40dd906f5f3178607bd1af8f1f865de9f5c84539))
* **deps:** update dependency @podium/utils to v4.4.38 ([d78532b](https://github.com/podium-lib/hapi-layout/commit/d78532bf7995d91e6e969c3ff19c49209ad478dc))
* **deps:** update dependency @podium/utils to v4.4.39 ([2ab97c8](https://github.com/podium-lib/hapi-layout/commit/2ab97c8da0a6b8c027a572636fa4033874583287))
* **deps:** update dependency @podium/utils to v4.4.40 ([5279a45](https://github.com/podium-lib/hapi-layout/commit/5279a456cb88fdbb1ca614e51a3a530af02ac4b7))
* **deps:** update dependency @podium/utils to v4.4.41 ([d467c31](https://github.com/podium-lib/hapi-layout/commit/d467c3180e49f7b42229f86f60f7a479bbfa219b))
* **deps:** update dependency @podium/utils to v4.5.1 ([cb74065](https://github.com/podium-lib/hapi-layout/commit/cb74065c01cc924b8f4c0b2c8a647bcd813099bd))

## [3.0.7](https://github.com/podium-lib/hapi-layout/compare/v3.0.6...v3.0.7) (2023-11-20)


Expand Down Expand Up @@ -40,6 +52,25 @@

* **deps:** update dependency @podium/utils to v4.4.37 ([40dd906](https://github.com/podium-lib/hapi-layout/commit/40dd906f5f3178607bd1af8f1f865de9f5c84539))

# [4.0.0-next.2](https://github.com/podium-lib/hapi-layout/compare/v4.0.0-next.1...v4.0.0-next.2) (2022-05-20)


### Bug Fixes

* Use next releases of Podium packages ([fc0604c](https://github.com/podium-lib/hapi-layout/commit/fc0604c979923e237421d9551c5b3eff6d52de2f))

# [4.0.0-next.1](https://github.com/podium-lib/hapi-layout/compare/v3.0.1...v4.0.0-next.1) (2022-05-20)


### Features

* Convert to esm ([a378ece](https://github.com/podium-lib/hapi-layout/commit/a378ece3faadfd6708b95b356efb080f1049a6e8))


### BREAKING CHANGES

* Module is now ESM only

## [3.0.1](https://github.com/podium-lib/hapi-layout/compare/v3.0.0...v3.0.1) (2022-05-20)


Expand Down
8 changes: 4 additions & 4 deletions lib/layout-plugin.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { HttpIncoming } from '@podium/utils';
import { readFileSync } from 'node:fs';


const { HttpIncoming } = require('@podium/utils');
const pkg = require('../package.json');
const pkg = readFileSync(new URL('../package.json', import.meta.url))

const PodiumLayoutHapiPlugin = class PodiumLayoutHapiPlugin {
constructor() {
Expand Down Expand Up @@ -56,4 +56,4 @@ const PodiumLayoutHapiPlugin = class PodiumLayoutHapiPlugin {
}
};

module.exports = PodiumLayoutHapiPlugin;
export default PodiumLayoutHapiPlugin;
8 changes: 5 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"name": "@podium/hapi-layout",
"version": "3.0.7",
"version": "5.0.0-next.1",
"type": "module",
"description": "Hapi plugin for Podium Layout.",
"main": "lib/layout-plugin.js",
"license": "MIT",
Expand Down Expand Up @@ -34,11 +35,12 @@
},
"author": "Trygve Lie",
"dependencies": {
"@podium/utils": "4.5.1"
"@podium/utils": "5.0.0"
},
"devDependencies": {
"@podium/layout": "5.0.0",
"@podium/utils": "5.0.0",
"@hapi/hapi": "21.3.2",
"@podium/layout": "4.6.125",
"@podium/test-utils": "2.5.2",
"@semantic-release/changelog": "6.0.3",
"@semantic-release/git": "10.0.1",
Expand Down
12 changes: 5 additions & 7 deletions test/layout-plugin.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
import { PodletServer, request } from '@podium/test-utils';
import Layout from '@podium/layout';
import Hapi from '@hapi/hapi';
import tap from 'tap';


const { PodletServer, request } = require('@podium/test-utils');
const Layout = require('@podium/layout');
const Hapi = require('@hapi/hapi');
const tap = require('tap');

const HapiLayout = require('..');
import HapiLayout from '../lib/layout-plugin.js';

class Server {
constructor(options = {}, podletAddr) {
Expand Down

0 comments on commit b859030

Please sign in to comment.