Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BREAKING CHANGE(temen): Deprecated되어 browser-toolkit으로 이동한 함수들 제거 #117

Merged
merged 4 commits into from
Dec 19, 2021

Conversation

evan-moon
Copy link
Member

체크해보기

  • 내가 만든 모듈을 export 했나요?
  • 테스트는 작성했나요?
  • 내가 만든 모듈에 대한 설명이 jsDoc 포맷으로 잘 입력되어있나요?

변경사항

제곧내입니다. Depreacted된 함수들을 제거하고 Major Update를 진행합니다.

집중적으로 리뷰 받고 싶은 부분이 있나요?

🙇

Comment on lines +14 to +19
export function findQueryParamInClient(key: string) {
const queryString = location != null ? location.search : '';
const query = parseQueryString(queryString);

return query[key];
}
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

이 친구는 location 에 디펜던시가 있어서 browser-toolkit으로 옮겼읍니다

@@ -3,7 +3,7 @@
"compilerOptions": {
"outDir": "./dist",
"declarationDir": "dist/types",
"lib": ["es2020"],
"lib": ["es2020", "dom"],
Copy link
Contributor

@Junkim93 Junkim93 Dec 19, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

동욱님 브라우저 관심사가 있는 유틸들은 브라우저툴킷으로 이동한것 같은데,
temen에서 dom에 관한 타입정의 추가해주신 이유가 궁금합니다 😶😶

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

오히려 브라우저 툴킷에는 빠져있어서요 -!

Copy link
Member Author

@evan-moon evan-moon Dec 19, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

temen에는 setTimeout을 사용하는 delay 함수와 window를 사용하는 isServer 상수 같은 녀석들도 있는데, 이 녀석들 때문에 필요하기는 합니다...!

근데 원래는 이 dom lib 설정이 루트에 있는 tsconfig.json에 포함되어 있기 때문에 잘 빌드되어야 정상인데, 갑자기 안 되네유....? browser-toolkit 같은 경우는 루트에 있는 dom 값을 잘 참조하고 있는데, temen이 갑자기 망가짐...

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

동욱님 그런데 지금 lib쪽 옵션을 해당 temen이나 browser-toolkit 에서 덮어쓰고 있어서, 원래 루트에서 정의했던 옵션은 적용 안되지 않나요..!?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

microsoft/TypeScript#20110
요거 해당 이슈 링크입니다 ..!

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

아하 이거 머지가 안 되는 옵션이라는 걸 놓쳤네유....ㅜㅜㅜ

9de77d0 에서 browser-toolkittementsconfig.json 내에서 lib 옵션을 제거했습니다.

@evan-moon evan-moon merged commit 12d7f75 into main Dec 19, 2021
@evan-moon evan-moon deleted the feat/remove-deprecated-functions branch December 19, 2021 07:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants