Skip to content

Commit

Permalink
Merge pull request #14 from lihbr/staging
Browse files Browse the repository at this point in the history
staging: 0.3.0
  • Loading branch information
lihbr committed Feb 14, 2021
2 parents 4d7742f + 88bc635 commit 8c003a7
Show file tree
Hide file tree
Showing 17 changed files with 222 additions and 216 deletions.
17 changes: 17 additions & 0 deletions packages/core/CHANGELOG.md
Expand Up @@ -3,6 +3,23 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

# [0.3.0](https://github.com/lihbr/lihbr-apex/compare/@lihbr/lihbr-apex.core@0.2.0...@lihbr/lihbr-apex.core@0.3.0) (2021-02-14)


### Bug Fixes

* **core:** normalize dark mode switch hitbox ([214ca08](https://github.com/lihbr/lihbr-apex/commit/214ca083e3b4a2e1b11bf6b8fb815b69362d9cf9))
* **core:** overflow with hero section on small screen ([1e54006](https://github.com/lihbr/lihbr-apex/commit/1e5400617b7eb1d6301a5b3e7287b8ba9c27a990))


### Features

* **core:** upgrade to @nuxtjs/sentry 5 ([2aba65c](https://github.com/lihbr/lihbr-apex/commit/2aba65c47d0caf6862908e2ae5045df512505b88))





# [0.2.0](https://github.com/lihbr/lihbr-apex/compare/@lihbr/lihbr-apex.core@0.1.1...@lihbr/lihbr-apex.core@0.2.0) (2021-01-20)


Expand Down
1 change: 1 addition & 0 deletions packages/core/nuxt.config.js
Expand Up @@ -120,6 +120,7 @@ module.exports = async () => {
Vue: { attachProps: true, logErrors: true }
},
config: {
autoSessionTracking: false,
environment: (() => {
if (process.env.NETLIFY) {
return process.env.BRANCH === "master"
Expand Down
22 changes: 11 additions & 11 deletions packages/core/package.json
@@ -1,6 +1,6 @@
{
"name": "@lihbr/lihbr-apex.core",
"version": "0.2.0",
"version": "0.3.0",
"description": "lihbr.com source code",
"private": true,
"author": "lihbr <hello@lihbr.com> (https://lihbr.com)",
Expand All @@ -19,33 +19,33 @@
"yarn": ">=1.22.0"
},
"dependencies": {
"@fontsource/antic-slab": "4.0.1",
"@fontsource/roboto": "4.0.1",
"@lihbr/lihbr-apex.lambda": "0.1.2",
"@fontsource/antic-slab": "4.2.1",
"@fontsource/roboto": "4.2.1",
"@lihbr/lihbr-apex.lambda": "0.2.0",
"@lihbr/utils-nuxt.smart-link": "0.2.0",
"@nuxtjs/sentry": "4.5.0",
"@nuxtjs/sentry": "5.0.1",
"color": "3.1.3",
"consola": "2.15.0",
"consola": "2.15.3",
"cookie": "0.4.1",
"focus-visible": "5.2.0",
"isomorphic-unfetch": "3.1.0",
"lodash": "4.17.20",
"nuxt": "2.14.12",
"statuses": "2.0.0"
"statuses": "2.0.1"
},
"devDependencies": {
"@lihbr/lihbr-apex.datalayer": "0.2.0",
"@lihbr/lihbr-apex.datalayer": "0.3.0",
"@lihbr/utils-netlify.ci": "0.2.0",
"@lihbr/utils-nuxt.env": "0.3.0",
"@lihbr/utils-nuxt.head": "0.2.0",
"@lihbr/utils-nuxt.payload": "0.1.1",
"@lihbr/utils-nuxt.statistics": "0.1.0",
"@nuxtjs/color-mode": "2.0.2",
"@nuxtjs/color-mode": "2.0.3",
"@nuxtjs/eslint-module": "3.0.2",
"@nuxtjs/feed": "2.0.0",
"@nuxtjs/global-components": "0.6.1",
"@nuxtjs/netlify-files": "1.2.0",
"@nuxtjs/pwa": "3.3.3",
"@nuxtjs/pwa": "3.3.5",
"@nuxtjs/sitemap": "2.4.0",
"@nuxtjs/tailwindcss": "3.4.2",
"autoprefixer": "^9.0.0",
Expand All @@ -54,7 +54,7 @@
"nuxt-ackee": "2.0.0",
"nuxt-svg-loader": "1.2.0",
"postcss": "^7.0.0",
"sass": "1.30.0",
"sass": "1.32.7",
"sass-loader": "10.1.0",
"shx": "0.3.3",
"tailwindcss": "npm:@tailwindcss/postcss7-compat"
Expand Down
2 changes: 1 addition & 1 deletion packages/core/src/components/partials/footer/Links.vue
Expand Up @@ -10,7 +10,7 @@
<smart-link
:href="item.link.href"
:blank="item.link.blank"
class="px-3 py-1 text-s transition-opacity opacity-100"
class="inline-block px-3 py-1 text-s transition-opacity opacity-100"
>
{{ item.title }}
</smart-link>
Expand Down
11 changes: 4 additions & 7 deletions packages/core/src/components/partials/header/Links.vue
Expand Up @@ -8,23 +8,20 @@
<smart-link
:href="item.link.href"
:blank="item.link.blank"
class="px-3 py-1 text-s"
class="inline-block px-3 py-1 text-s"
>
{{ item.title }}
</smart-link>
</li>
<li class="leading-none">
<button
aria-label="Color Mode Switch"
class="px-3 h-5 w-11 mt-px fill-current"
class="px-3 h-full w-11 fill-current"
@click="switchTheme"
>
<client-only>
<sun-svg
v-if="$colorMode.value === 'light'"
class="h-inherit w-5"
/>
<moon-svg v-else class="h-inherit w-5" />
<sun-svg v-if="$colorMode.value === 'light'" class="h-5 w-5" />
<moon-svg v-else class="h-5 w-5" />
</client-only>
</button>
</li>
Expand Down
6 changes: 4 additions & 2 deletions packages/core/src/components/sections/home/Feed.vue
Expand Up @@ -31,10 +31,12 @@ export default {

<style lang="sass" scoped>
.homeFeed
@screen col-5
transform: translateY(-8rem)
@media (min-width: theme("spacing.col-5")) and (min-height: theme("spacing.col-5"))
margin-top: -12rem // 8rem + 4rem to compensate ul negative margin
@screen col-5
padding-bottom: 16rem
transform: translateY(-8rem)
.cardWrapper:nth-child(even)
transform: translateY(16rem)
Expand Down
16 changes: 16 additions & 0 deletions packages/datalayer/CHANGELOG.md
Expand Up @@ -3,6 +3,22 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

# [0.3.0](https://github.com/lihbr/lihbr-apex/compare/@lihbr/lihbr-apex.datalayer@0.2.0...@lihbr/lihbr-apex.datalayer@0.3.0) (2021-02-14)


### Bug Fixes

* **datalayer:** allow hyphens and underscores on snippets filename ([c3f0db9](https://github.com/lihbr/lihbr-apex/commit/c3f0db91f4cc288147be95f40bbe02fec5049c41))


### Features

* **datalayer:** upgrade to @prismicio/client 4 ([83e379d](https://github.com/lihbr/lihbr-apex/commit/83e379d42f629c7d81d1501dd8caa2635ebf8ede))





# [0.2.0](https://github.com/lihbr/lihbr-apex/compare/@lihbr/lihbr-apex.datalayer@0.1.0...@lihbr/lihbr-apex.datalayer@0.2.0) (2021-01-20)


Expand Down
8 changes: 4 additions & 4 deletions packages/datalayer/package.json
@@ -1,6 +1,6 @@
{
"name": "@lihbr/lihbr-apex.datalayer",
"version": "0.2.0",
"version": "0.3.0",
"description": "lihbr.com source code",
"author": "lihbr <hello@lihbr.com> (https://lihbr.com)",
"license": "MIT",
Expand All @@ -22,12 +22,12 @@
"directory": "packages/datalayer"
},
"dependencies": {
"@prismicio/client": "4.0.0",
"color": "3.1.3",
"consola": "2.15.0",
"consola": "2.15.3",
"lodash": "4.17.20",
"prismic-dom": "2.2.4",
"prismic-javascript": "3.0.2",
"prismjs": "1.22.0",
"prismjs": "1.23.0",
"slugify": "1.4.6"
}
}
3 changes: 1 addition & 2 deletions packages/datalayer/src/content/global.js
@@ -1,7 +1,6 @@
const Color = require("color");
const Prismic = require("prismic-javascript");
const Prismic = require("@prismicio/client");

const anyLinkResolver = require("../anyLinkResolver");
const { get, bulkGet } = require("../utils");
const formatOptionsPresets = require("../formatOptionsPresets");

Expand Down
2 changes: 1 addition & 1 deletion packages/datalayer/src/content/routes.js
@@ -1,4 +1,4 @@
const Prismic = require("prismic-javascript");
const Prismic = require("@prismicio/client");
const cloneDeep = require("lodash/cloneDeep");

const logger = require("../logger");
Expand Down
4 changes: 2 additions & 2 deletions packages/datalayer/src/htmlSerializer/preformatted.js
Expand Up @@ -21,8 +21,8 @@ const SUPPORTED_LANGUAGES = [...DEFAULT_LANGUAGES, ...NON_DEFAULT_LANGUAGES];

require("prismjs/components/")(NON_DEFAULT_LANGUAGES);

// https://regex101.com/r/hEx9yW/3
const OPTIONS_REGEX = /^\s*\/(?<language>[\w-]+)?(?:\[(?<filename>[\/\w\s.-~]*)\])?(?:{(?<highlights>[\d\s,-]*)})?\/\s*/;
// https://regex101.com/r/IybNni/1
const OPTIONS_REGEX = /^\s*\/(?<language>[\w-]+)?(?:\[(?<filename>[\/\w\s.~_-]*)\])?(?:{(?<highlights>[\s\d,-]*)})?\/\s*/;

const HTML_PREVIEW = "html-preview";

Expand Down
2 changes: 1 addition & 1 deletion packages/datalayer/src/index.js
Expand Up @@ -5,7 +5,7 @@ const linkResolver = require("./linkResolver");

const utils = require("./utils");
const formatOptionsPresets = require("./formatOptionsPresets.json");
const { previewCookie } = require("prismic-javascript");
const { previewCookie } = require("@prismicio/client");

module.exports = {
content,
Expand Down
4 changes: 2 additions & 2 deletions packages/datalayer/src/utils.js
@@ -1,4 +1,4 @@
const Prismic = require("prismic-javascript");
const Prismic = require("@prismicio/client");
const PrismicDOM = require("prismic-dom");
const cloneDeep = require("lodash/cloneDeep");

Expand Down Expand Up @@ -221,7 +221,7 @@ const bulkGet = async ({ query, options, formatOptions } = {}, singleUse) => {
const resolvePreview = async ({ token, documentId } = {}, singleUse) => {
if (!token || !documentId) {
/* eslint-disable-next-line prettier/prettier */
throw new Error("\"token\" and \"documentId\" parameters are required");
throw new Error('"token" and "documentId" parameters are required');
}

const api = await getApi(singleUse);
Expand Down
11 changes: 11 additions & 0 deletions packages/lambda/CHANGELOG.md
Expand Up @@ -3,6 +3,17 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

# [0.2.0](https://github.com/lihbr/lihbr-apex/compare/@lihbr/lihbr-apex.lambda@0.1.2...@lihbr/lihbr-apex.lambda@0.2.0) (2021-02-14)


### Features

* **lambda:** upgrade to @sentry/node 6 ([5a71646](https://github.com/lihbr/lihbr-apex/commit/5a71646bf18bdd96bb8223f552d5429b3279ec18))





## [0.1.2](https://github.com/lihbr/lihbr-apex/compare/@lihbr/lihbr-apex.lambda@0.1.1...@lihbr/lihbr-apex.lambda@0.1.2) (2021-01-20)

**Note:** Version bump only for package @lihbr/lihbr-apex.lambda
Expand Down
6 changes: 3 additions & 3 deletions packages/lambda/package.json
@@ -1,6 +1,6 @@
{
"name": "@lihbr/lihbr-apex.lambda",
"version": "0.1.2",
"version": "0.2.0",
"description": "lihbr.com source code",
"author": "lihbr <hello@lihbr.com> (https://lihbr.com)",
"license": "MIT",
Expand All @@ -26,9 +26,9 @@
"directory": "packages/lambda"
},
"dependencies": {
"@lihbr/lihbr-apex.datalayer": "0.2.0",
"@lihbr/lihbr-apex.datalayer": "0.3.0",
"@lihbr/utils-netlify.lambda": "0.2.0",
"@sentry/node": "5.29.2",
"@sentry/node": "6.1.0",
"cookie": "0.4.1",
"dotenv": "8.2.0",
"isomorphic-unfetch": "3.1.0"
Expand Down
1 change: 1 addition & 0 deletions packages/lambda/src/utils/Sentry.js
Expand Up @@ -3,6 +3,7 @@ const Sentry = require("@sentry/node");

Sentry.init({
dsn: process.env.SENTRY_DSN_LAMBDA,
autoSessionTracking: false,
environment:
process.env.NODE_ENV === "development" ? "development" : "production"
});
Expand Down

0 comments on commit 8c003a7

Please sign in to comment.