Skip to content

Commit

Permalink
Merge pull request dev-next-release - 1.22.1 (#1248)
Browse files Browse the repository at this point in the history
dev-next-release - 1.22.1
  • Loading branch information
angeloashmore authored Dec 18, 2023
2 parents 08a7355 + 7f75d66 commit 7de52f5
Show file tree
Hide file tree
Showing 16 changed files with 49 additions and 49 deletions.
2 changes: 1 addition & 1 deletion e2e-projects/next-upgrade/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "next-upgrade",
"version": "1.22.0",
"version": "1.22.1-dev-next-release.1",
"private": true,
"scripts": {
"dev": "next dev",
Expand Down
2 changes: 1 addition & 1 deletion e2e-projects/next/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "cimsirp",
"version": "1.22.0",
"version": "1.22.1-dev-next-release.1",
"private": true,
"scripts": {
"dev": "next dev",
Expand Down
2 changes: 1 addition & 1 deletion e2e-projects/sveltekit/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "sveltekit",
"version": "1.22.0",
"version": "1.22.1-dev-next-release.1",
"private": true,
"scripts": {
"dev": "vite dev",
Expand Down
4 changes: 2 additions & 2 deletions packages/adapter-next/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@slicemachine/adapter-next",
"version": "0.3.30",
"version": "0.3.31-dev-next-release.1",
"description": "Slice Machine adapter for Next.js.",
"keywords": [
"typescript",
Expand Down Expand Up @@ -61,7 +61,7 @@
"dependencies": {
"@prismicio/simulator": "^0.1.4",
"@prismicio/types-internal": "^2.2.0",
"@slicemachine/plugin-kit": "workspace:^",
"@slicemachine/plugin-kit": "workspace:*",
"common-tags": "^1.8.2",
"fp-ts": "^2.13.1",
"io-ts": "^2.2.20",
Expand Down
4 changes: 2 additions & 2 deletions packages/adapter-nuxt/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@slicemachine/adapter-nuxt",
"version": "0.3.30",
"version": "0.3.31-dev-next-release.1",
"description": "Slice Machine adapter for Nuxt 3.",
"keywords": [
"typescript",
Expand Down Expand Up @@ -61,7 +61,7 @@
"dependencies": {
"@prismicio/simulator": "^0.1.4",
"@prismicio/types-internal": "^2.2.0",
"@slicemachine/plugin-kit": "workspace:^",
"@slicemachine/plugin-kit": "workspace:*",
"common-tags": "^1.8.2",
"fp-ts": "^2.13.1",
"io-ts": "^2.2.20",
Expand Down
4 changes: 2 additions & 2 deletions packages/adapter-nuxt2/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@slicemachine/adapter-nuxt2",
"version": "0.3.30",
"version": "0.3.31-dev-next-release.1",
"description": "Slice Machine adapter for Nuxt 2.",
"keywords": [
"typescript",
Expand Down Expand Up @@ -61,7 +61,7 @@
"dependencies": {
"@prismicio/simulator": "^0.1.4",
"@prismicio/types-internal": "^2.2.0",
"@slicemachine/plugin-kit": "workspace:^",
"@slicemachine/plugin-kit": "workspace:*",
"common-tags": "^1.8.2",
"fp-ts": "^2.13.1",
"io-ts": "^2.2.20",
Expand Down
4 changes: 2 additions & 2 deletions packages/adapter-sveltekit/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@slicemachine/adapter-sveltekit",
"version": "0.3.30",
"version": "0.3.31-dev-next-release.1",
"description": "Slice Machine adapter for SvelteKit.",
"keywords": [
"typescript",
Expand Down Expand Up @@ -64,7 +64,7 @@
"dependencies": {
"@prismicio/simulator": "^0.1.4",
"@prismicio/types-internal": "^2.2.0",
"@slicemachine/plugin-kit": "workspace:^",
"@slicemachine/plugin-kit": "workspace:*",
"common-tags": "^1.8.2",
"fp-ts": "^2.13.1",
"io-ts": "^2.2.20",
Expand Down
4 changes: 2 additions & 2 deletions packages/init/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@slicemachine/init",
"version": "2.9.8",
"version": "2.9.9-dev-next-release.1",
"description": "Init Prismic Slice Machine in your project",
"keywords": [
"typescript",
Expand Down Expand Up @@ -54,7 +54,7 @@
"@antfu/ni": "^0.20.0",
"@lihbr/listr-update-renderer": "^0.5.3",
"@sentry/node": "^7.70.0",
"@slicemachine/manager": "workspace:^",
"@slicemachine/manager": "workspace:*",
"chalk": "^4.1.2",
"giget": "^1.1.2",
"globby": "^13.1.3",
Expand Down
6 changes: 3 additions & 3 deletions packages/manager/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@slicemachine/manager",
"version": "0.17.4",
"version": "0.17.5-dev-next-release.1",
"description": "Manage all aspects of a Slice Machine project.",
"repository": {
"type": "git",
Expand Down Expand Up @@ -69,7 +69,7 @@
"@prismicio/mocks": "2.0.0",
"@prismicio/types-internal": "^2.2.0",
"@segment/analytics-node": "1.1.3",
"@slicemachine/plugin-kit": "workspace:^",
"@slicemachine/plugin-kit": "workspace:*",
"@wooorm/starry-night": "^1.6.0",
"cookie": "^0.5.0",
"cors": "^2.8.5",
Expand All @@ -87,7 +87,7 @@
"node-fetch": "^3.3.1",
"p-limit": "^4.0.0",
"prettier": "^3.0.3",
"r19": "^0.1.8",
"r19": "0.1.8",
"rc9": "^2.0.1",
"rehype-stringify": "^9.0.3",
"remark-gfm": "^3.0.1",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -503,7 +503,7 @@ export class PrismicRepositoryManager extends BaseManager {
environments = environments.filter((environment) => {
if (environment.kind === "dev") {
return environment.users.some(
(user) => user.id === profile.userId,
(user) => user.id === profile.shortId,
);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,12 @@ it("returns a list of environments for the Prismic repository", async (ctx) => {
cwd,
});

const userId = "user-foo";
const shortId = "user-foo";

mockPrismicUserAPI(ctx, {
profileEndpoint: {
profile: {
userId,
shortId,
},
},
});
Expand Down Expand Up @@ -57,7 +57,7 @@ it("returns a list of environments for the Prismic repository", async (ctx) => {
kind: "dev",
domain: `${repositoryName}-bar`,
name: "bar",
users: [{ id: userId }],
users: [{ id: shortId }],
},
{
kind: "dev",
Expand All @@ -80,28 +80,28 @@ it("returns a list of environments for the Prismic repository", async (ctx) => {
expect(res).toStrictEqual({
environments: environments.filter((environment) => {
if (environment.kind === "dev") {
return environment.users.some((user) => user.id === userId);
return environment.users.some((user) => user.id === shortId);
}

return true;
}),
});
});

it("exludes personal environments that are not the user's by default", async (ctx) => {
it("excludes personal environments that are not the user's by default", async (ctx) => {
const adapter = createTestPlugin();
const cwd = await createTestProject({ adapter });
const manager = createSliceMachineManager({
nativePlugins: { [adapter.meta.name]: adapter },
cwd,
});

const userId = "user-foo";
const shortId = "user-foo";

mockPrismicUserAPI(ctx, {
profileEndpoint: {
profile: {
userId,
shortId,
},
},
});
Expand All @@ -117,7 +117,7 @@ it("exludes personal environments that are not the user's by default", async (ct
kind: "dev",
domain: `${repositoryName}-bar`,
name: "bar",
users: [{ id: userId }],
users: [{ id: shortId }],
};
const someoneElsesEnvironment: Environment = {
kind: "dev",
Expand Down Expand Up @@ -150,12 +150,12 @@ it("includes all personal environments if configured", async (ctx) => {
cwd,
});

const userId = "user-foo";
const shortId = "user-foo";

mockPrismicUserAPI(ctx, {
profileEndpoint: {
profile: {
userId,
shortId,
},
},
});
Expand All @@ -171,7 +171,7 @@ it("includes all personal environments if configured", async (ctx) => {
kind: "dev",
domain: `${repositoryName}-bar`,
name: "bar",
users: [{ id: userId }],
users: [{ id: shortId }],
};
const someoneElsesEnvironment: Environment = {
kind: "dev",
Expand Down
2 changes: 1 addition & 1 deletion packages/plugin-kit/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@slicemachine/plugin-kit",
"version": "0.4.30",
"version": "0.4.31-dev-next-release.1",
"description": "A set of helpers to develop and run Slice Machine plugins",
"keywords": [
"typescript",
Expand Down
6 changes: 3 additions & 3 deletions packages/slice-machine/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "slice-machine-ui",
"version": "1.22.0",
"version": "1.22.1-dev-next-release.1",
"license": "MIT",
"description": "A visual builder for your Slice Models with all the tools you need to generate data models and mock CMS content locally.",
"repository": {
Expand Down Expand Up @@ -31,8 +31,8 @@
"start-slicemachine": "./bin/start-slicemachine.cjs"
},
"dependencies": {
"@slicemachine/manager": "workspace:^",
"start-slicemachine": "workspace:^"
"@slicemachine/manager": "workspace:*",
"start-slicemachine": "workspace:*"
},
"devDependencies": {
"@emotion/react": "11.11.1",
Expand Down
4 changes: 2 additions & 2 deletions packages/start-slicemachine/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "start-slicemachine",
"version": "0.12.10",
"version": "0.12.11-dev-next-release.1",
"description": "Start Slice Machine from within a project.",
"repository": {
"type": "git",
Expand Down Expand Up @@ -57,7 +57,7 @@
"dependencies": {
"@prismicio/mocks": "^2.0.0-alpha.2",
"@prismicio/types-internal": "^2.2.0",
"@slicemachine/manager": "workspace:^",
"@slicemachine/manager": "workspace:*",
"body-parser": "^1.20.2",
"chalk": "^4.1.2",
"cors": "^2.8.5",
Expand Down
2 changes: 1 addition & 1 deletion playwright/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@slicemachine/e2e",
"version": "0.0.3",
"version": "0.0.4-dev-next-release.1",
"private": true,
"description": "E2E tests for Slice Machine",
"author": "Prismic <[email protected]> (https://prismic.io)",
Expand Down
Loading

0 comments on commit 7de52f5

Please sign in to comment.